AnsweredAssumed Answered

And again CL-GL Interop fails with CL_INVALID_GL_OBJECT

Question asked by gagcl on Aug 24, 2012
Latest reply on Aug 24, 2012 by gagcl

I'm using Debian Testing with the latest fglrx-driver&opencl (http://packages.debian.org/experimental/fglrx-driver) and XServer 1.12.3.

 

I've tried 3 examples for CL-GL interop:

- SimpleGL from AMD APP SDK 2.7

- https://code.google.com/p/opencl-book-samples/source/browse/trunk/src/Chapter_10/GLinterop/GLinterop.cpp

- https://github.com/enjalot/adventures_in_opencl/tree/master/part2

All of them fail with CL_INVALID_GL_OBJECT.

 

I've reinstalled (with purge) the fglrx but it didn't help. Then I've checked my setup:

2.7/samples/opencl/cl/app/SimpleGL$ ldd build/debug/x86_64/SimpleGL

...

    libglut.so.3 => /usr/lib/x86_64-linux-gnu/libglut.so.3 (0x00007fe27ed34000)

    libGLEW.so.1.7 => /usr/lib/x86_64-linux-gnu/libGLEW.so.1.7 (0x00007fe27eac2000)

    libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fe27e8be000)

    libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fe27e650000)

    libOpenCL.so.1 => /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 (0x00007fe27e44a000)

...

    libatiuki.so.1 => /usr/lib/x86_64-linux-gnu/libatiuki.so.1 (0x00007fe27cea0000)

...

 

$ ls -l /usr/lib/x86_64-linux-gnu/libglut.so.3

lrwxrwxrwx 1 root root 16 Jul 14 00:28 /usr/lib/x86_64-linux-gnu/libglut.so.3 -> libglut.so.3.9.0

$ ls -l /usr/lib/x86_64-linux-gnu/libglut.so.3.9.0

-rw-r--r-- 1 root root 294784 Jul 14 00:28 /usr/lib/x86_64-linux-gnu/libglut.so.3.9.0

$ dpkg -S /usr/lib/x86_64-linux-gnu/libglut.so.3.9.0

freeglut3:amd64: /usr/lib/x86_64-linux-gnu/libglut.so.3.9.0

 

$ ls -l /usr/lib/x86_64-linux-gnu/libGLEW.so.1.7

lrwxrwxrwx 1 root root 16 Feb 13  2012 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.7 -> libGLEW.so.1.7.0

$ ls -l /usr/lib/x86_64-linux-gnu/libGLEW.so.1.7.0

-rw-r--r-- 1 root root 449480 Feb 13  2012 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.7.0

$ dpkg -S /usr/lib/x86_64-linux-gnu/libGLEW.so.1.7.0

libglew1.7:amd64: /usr/lib/x86_64-linux-gnu/libGLEW.so.1.7.0

 

$ ls -l /usr/lib/x86_64-linux-gnu/libGL.so.1

lrwxrwxrwx 1 root root 50 Aug 23 16:57 /usr/lib/x86_64-linux-gnu/libGL.so.1 -> /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu

$ ls -l /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu

lrwxrwxrwx 1 root root 42 Aug 24 16:37 /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/fglrx/libGL.so.1

$ ls -l /usr/lib/x86_64-linux-gnu/fglrx/libGL.so.1

lrwxrwxrwx 1 root root 18 Aug  7 12:55 /usr/lib/x86_64-linux-gnu/fglrx/libGL.so.1 -> fglrx-libGL.so.1.2

$ ls -l /usr/lib/x86_64-linux-gnu/fglrx/fglrx-libGL.so.1.2

-rw-r--r-- 1 root root 936984 Aug  7 12:55 /usr/lib/x86_64-linux-gnu/fglrx/fglrx-libGL.so.1.2

$ dpkg -S /usr/lib/x86_64-linux-gnu/fglrx/fglrx-libGL.so.1.2

libgl1-fglrx-glx:amd64: /usr/lib/x86_64-linux-gnu/fglrx/fglrx-libGL.so.1.2

 

$ ls -l /usr/lib/x86_64-linux-gnu/libGLU.so.1

lrwxrwxrwx 1 root root 19 Jul 29 15:02 /usr/lib/x86_64-linux-gnu/libGLU.so.1 -> libGLU.so.1.3.08004

$ ls -l /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.08004

-rw-r--r-- 1 root root 447632 Jul 29 15:02 /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.08004

$ dpkg -S /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.08004

libglu1-mesa:amd64: /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.08004

 

$ ls -l /usr/lib/x86_64-linux-gnu/libOpenCL.so.1

-rw-r--r-- 1 root root 23120 Aug  7 12:55 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1

$ dpkg -S /usr/lib/x86_64-linux-gnu/libOpenCL.so.1

amd-libopencl1:amd64: /usr/lib/x86_64-linux-gnu/libOpenCL.so.1

 

$ ls -l /usr/lib/x86_64-linux-gnu/libatiuki.so.1

lrwxrwxrwx 1 root root 16 Aug  7 12:55 /usr/lib/x86_64-linux-gnu/libatiuki.so.1 -> libatiuki.so.1.0

$ ls -l /usr/lib/x86_64-linux-gnu/libatiuki.so.1.0

-rw-r--r-- 1 root root 34352 Aug  7 12:55 /usr/lib/x86_64-linux-gnu/libatiuki.so.1.0

$ dpkg -S /usr/lib/x86_64-linux-gnu/libatiuki.so.1.0

libfglrx:amd64: /usr/lib/x86_64-linux-gnu/libatiuki.so.1.0

 

It seems all libraries are properly.

 

$ clinfo

Number of platforms:                 1

  Platform Profile:                 FULL_PROFILE

  Platform Version:                 OpenCL 1.2 AMD-APP (938.2)

  Platform Name:                 AMD Accelerated Parallel Processing

  Platform Vendor:                 Advanced Micro Devices, Inc.

  Platform Extensions:                 cl_khr_icd cl_amd_event_callback cl_amd_offline_devices

...

  Vendor:                                 Advanced Micro Devices, Inc.

  Device OpenCL C version:             OpenCL C 1.2

  Driver version:                 CAL 1.4.1741

  Profile:                     FULL_PROFILE

  Version:                     OpenCL 1.2 AMD-APP (938.2)

...

 

Is there any way to find out the details, what property of the OpenGL object is not valid?

 

Thanks.

Outcomes