cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

rektide
Journeyman III
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



Tags (4)
0 Kudos
Reply
17 Replies
rektide
Journeyman III
Journeyman III

CL_INVALID_GL_OBJECT in Linux

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 Kudos
Reply
nou
Exemplar
Exemplar

CL_INVALID_GL_OBJECT in Linux

are other samples running correctly?

also try run SimpleGL on CPU device.

0 Kudos
Reply
rektide
Journeyman III
Journeyman III

CL_INVALID_GL_OBJECT in Linux

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 Kudos
Reply
nou
Exemplar
Exemplar

CL_INVALID_GL_OBJECT in Linux

add "-device cpu" as parameter.

0 Kudos
Reply
himanshu_gautam
Grandmaster
Grandmaster

CL_INVALID_GL_OBJECT in Linux

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

0 Kudos
Reply
tweenk
Journeyman III
Journeyman III

CL_INVALID_GL_OBJECT in Linux

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 Kudos
Reply
danieltian77
Journeyman III
Journeyman III

CL_INVALID_GL_OBJECT in Linux

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 Kudos
Reply
nou
Exemplar
Exemplar

CL_INVALID_GL_OBJECT in Linux

just idea run glxinfo | grep vendor

0 Kudos
Reply
danieltian77
Journeyman III
Journeyman III

CL_INVALID_GL_OBJECT in Linux

Output of "glxinfo | grep vendor"

 

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

0 Kudos
Reply