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
Help?
Are there some logs I should be attaching? Xorg.0.log? Some strace or gdb info? How can I get help with this?
are other samples running correctly?
also try run SimpleGL on CPU device.
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.
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!
just idea run glxinfo | grep vendor
Output of "glxinfo | grep vendor"
server glx vendor string: ATI
client glx vendor string: ATI
OpenGL vendor string: ATI Technologies Inc.
so it didn't use Mesa. that was my suspicion
Was it suppose to use Mesa not ATI?
How to solve the issue?
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.
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
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
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.
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.
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.)
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?
add "-device cpu" as parameter.
A little correction the option is --device cpu. You can type -h to view all other options.