[Mesa-dev] Testing OpenCL with gegl

Kertesz Laszlo laszlo.kertesz at gmail.com
Sat Jun 21 10:09:43 PDT 2014


On 06/21/2014 12:57 PM, Bruno Jimenez wrote:
> Hi,
> 
> Have you built gegl with the patches that Jan sent to the mailing list?
> 
> You can find them here:
> http://lists.freedesktop.org/archives/mesa-dev/2014-June/061880.html
> 
> Hope it helps!
> Bruno
> 
Yes it did help. Although some of the tests managed to hang and reset
the gpu...
Gimp seems to use the gpu for some tests.
In Gimp (launched with 'GEGL_DEBUG=opencl GEGL_USE_OPENCL=gpu gimp') i
get many errors like:

GEGL-gegl-cl-color.c-Message: [GEGL_DEBUG_OPENCL] gegl-cl-color.c:243:
Missing OpenCL conversion for R'G'B' u8 -> RGBA float
Are those indications of some error or just debug info?

> On Sat, 2014-06-21 at 09:17 +0300, Kertesz Laszlo wrote:
>> Hmm. I get
>>
>> GEGL_DEBUG=opencl ./run-compositions.py apply-lens.xml
>> GEGL-gegl-cl-init.c-Message: [GEGL_DEBUG_OPENCL] gegl-cl-init.c:508:
>> libOpenCL.so: 'clCreateFromGLTexture2D':
>> /usr/lib/x86_64-linux-gnu/libOpenCL.so: undefined symbol:
>> clCreateFromGLTexture2D
>> GEGL-gegl-cl-init.c-Message: [GEGL_DEBUG_OPENCL] gegl-cl-init.c:636:
>> OpenCL is disabled
>> GEGL-gegl-cl-init.c-Message: [GEGL_DEBUG_OPENCL] gegl-cl-init.c:636:
>> OpenCL is disabled
>> /media/bigdata/compile/gegl/tests/compositions/reference/apply-lens.png
>> and /media/bigdata/compile/gegl/tests/compositions/output/apply-lens.png
>> are identical
>> PASS apply-lens.xml
>> SKIP apply-lens.xml (OpenCL)
>> === Test Results ===
>>  tests passed:  1
>>  tests skipped: 1
>>  tests failed:  0
>> ======  PASS  ======
>>
>> I have built llvm, kernel,mesa from git with opencl on (A8-6500 APU,
>> ARUBA). Simple opencl tests work.
>>
>> Using gimp (built from git) i have the same undefined symbol error in
>> the console and all operations use 1 CPU core, the GPU doesnt seem to be
>> used at all.  If i make all tests, all opencl tests are skipped and one
>> (non-opencl i suppose) even fails (gegl.xml).
>> Any ideas how i could use opencl?
>>
> 
> 

-- 
O zi buna,

Kertesz Laszlo


More information about the mesa-dev mailing list