[Mesa-dev] Testing OpenCL with gegl

Jan Vesely jan.vesely at rutgers.edu
Sat Jun 21 10:31:04 PDT 2014


On Sat, 2014-06-21 at 20:09 +0300, Kertesz Laszlo wrote:
> 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?

These are caused by the second patch that disables use of color
conversion kernels. These kernels are used often and the compilation
crashes, so I disabled them to avoid false failures.
GEGL falls back on cpu path if it can't use an opencl kernel so these
don't matter much.

regards,
Jan

> 
> > 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?
> >>
> > 
> > 
> 

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140621/d4212752/attachment.sig>


More information about the mesa-dev mailing list