cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

rektide
Journeyman III

CL_INVALID_GL_OBJECT in Linux

Hello everyone,

Took some wrangling, but I finally got the AMD APP SDK running on Ubuntu & Debian.  Well, mostly, the OpenGL interop samples all fail in essentially identical methods, a failure of OpenCL to get the OpenGL object.

Any suggestions? Here's SimpleGL failing to run.

./SimpleGL 

Platform 0 : Advanced Micro Devices, Inc.

 

Selected Platform Vendor : Advanced Micro Devices, Inc.

Device 0 : Juniper

Error: clCreateFromGLBuffer failed. (posBuf) Error code : CL_INVALID_GL_OBJECT



0 Likes
17 Replies
rektide
Journeyman III

Help?

 

Are there some logs I should be attaching? Xorg.0.log? Some strace or gdb info? How can I get help with this?

0 Likes

are other samples running correctly?

also try run SimpleGL on CPU device.

0 Likes
tweenk
Journeyman III

I have the same problem. Running the SimpleGL sample fails in the same way (CL_INVALID_GL_OBJECT).

My system is Ubuntu 11.04, AMD aPP SDK 2.4, Catalyst 11.6 installed via the Ubuntu package generator, Radeon HD 6970.

0 Likes

I am encountering the same problem too.

Ubuntu 11.04, AMD APP SDK 2.4, same as above, with HD Radeon 5670.

"--device cpu" gives the same error - CL_INVALID_GL_OBJECT

Need help!

0 Likes

just idea run glxinfo | grep vendor

0 Likes

Output of "glxinfo | grep vendor"

 

server glx vendor string: ATI
client glx vendor string: ATI
OpenGL vendor string: ATI Technologies Inc.

0 Likes

so it didn't use Mesa. that was my suspicion

0 Likes

Was it suppose to use Mesa not ATI?

How to solve the issue?

0 Likes

 

Still same problem. Running the SimpleGL sample fails with (CL_INVALID_GL_OBJECT)

Ubuntu 11.04, AMD APP SDK 2.4, Catalyst installed via the Ubuntu Additional Driver tool, Radeon HD 5670.

0 Likes

try download a latest driver from amd.com, create packages with "./ati-driver-instaler....run --buildpkg Ubuntu/natty" and after that install them with dpkg -i *.deb

0 Likes

Thanks. I tried your suggestion, still the same result. Any other suggestions? Does it worth to try Ubuntu 10.04 instead of 11.04 (I've been hesitating to do so for I would have to rebuild many things)?

Here is the information from Catalyst Control Center:

Software:

- Catalyst Version                                   11.6

- Driver Packaging Version                   8.84.6-110324a-116088C-ATI

- 2D Driver Version                                 8.86.5

- Catalyst Control Center Version        2.13

- RenderR Version                                  1.3

 

OpenGL

- OpenGL Provider                                  ATI Technologies Inc.

- OpenGL Renderer                                ATI Radeon HD 5670

- OpenGL Version                                    4.1.10834 Compatibility Profile Context

0 Likes

Also, I have the following Mesa packages installed. Does that matter? Should I remove them after installing the fglrx driver?

libgl1-mesa-glx, libgl1-mesa-dev

libgl1-mesa-dri

libglu1-mesa, libglu1-mesa-dev

mesa-comman-dev, mesa-utils, xscreensaver-gl

 

Thanks.

0 Likes

well i think you should try 10.04 as it is only official supported ubuntu version. IIRC what i tested ubuntu 10.10 should work too. but i am not 100% sure.

0 Likes

Hi.

I had same problem.(AMD E-350 / Ubuntu(natty) 32bit)

I tryed to reinstall fglrx driver (11.6) .

 sh ./ati-driver-installer-XXXX.run --force

Now everything is ok.

(Priviously I used deb files was created "sh ./ati-driver-installer-11-6-x86.x86_64.run --buildpkg Ubuntu/natty".

 But I encountered this problem.)

 

0 Likes
rektide
Journeyman III

All of the OpenGL examples fail with the "CL_INVALID_GL_OBJECT" error. The non OpenGL samples all seem to run fine.

How do I switch to the CPU device?

0 Likes

add "-device cpu" as parameter.

0 Likes

A little correction the option is --device cpu. You can type -h to view all other options.

0 Likes