cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

bodigital
Journeyman III

Ubuntu 12.04 AMD Radeon HD 6970 Catalyst 12.6 APP SDK 2.7 OpenCL cl_khr_gl_sharing issue: Error: clCreateFromGLBuffer failed. (posBuf) Error code : CL_INVALID_GL_OBJECT

/opt/AMDAPP/samples/opencl/cl/app/SimpleGL$ build/debug/x86_64/SimpleGL

Platform 0 : Advanced Micro Devices, Inc.

Platform found : Advanced Micro Devices, Inc.

Selected Platform Vendor : Advanced Micro Devices, Inc.

Device 0 : Cayman Device ID is 0xd6d000

Number of displays 1

glXCreateContextAttribsARB 0x7f058c0cdc80

Number of interoperable devices 1

Interop Device ID is 0xd6d000

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

Location : SimpleGL.cpp:738

/opt/AMDAPP/samples/opencl/cl/app/SimpleGL$ fglrxinfo

display:   screen: 0

OpenGL vendor string: Advanced Micro Devices, Inc.

OpenGL renderer string: AMD Radeon HD 6900 Series

OpenGL version string: 4.2.11733 Compatibility Profile Context

Catalyst control center driver information:

Catalyst™ Version 12.6

Driver Packaging Version 8.98-120611a-141410C-ATI

2D Driver Version 8.98.2

Catalyst™ Control Center Version 2.15

RandR Version 1.3

/opt/AMDAPP/samples/opencl/cl/app/SimpleGL$ uname -a

Linux hilbert 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Any ideas on how to resolve the problem with the cl_khr_gl_sharing extension in the SimpleGL sample application?

Thanks!

0 Likes
3 Replies
nou
Exemplar

export LD_LIBRARY_PATH=/usr/lib/fglrx

0 Likes

Please explain how this is supposed to fix the issue.

/opt/AMDAPP/samples/opencl/cl/app/SimpleGL$ export LD_LIBRARY_PATH=/usr/lib/fglrx/

/opt/AMDAPP/samples/opencl/cl/app/SimpleGL$ build/debug/x86_64/SimpleGL

Platform 0 : Advanced Micro Devices, Inc.

Platform found : Advanced Micro Devices, Inc.

Selected Platform Vendor : Advanced Micro Devices, Inc.

Device 0 : Cayman Device ID is 0xea2000

Number of displays 1

glXCreateContextAttribsARB 0x7f0569e3bc80

Number of interoperable devices 1

Interop Device ID is 0xea2000

Failed to load kernel file: /opt/AMDAPP/samples/opencl/cl/app/SimpleGL/build/debug/x86_64/SimpleGL_Kernels.cl

Error: sampleCommon::buildOpenCLProgram() failed

Location : SimpleGL.cpp:753

It appears it does not fix the issue in my case.

0 Likes

it seems that you have already set LD_LIBRARY_PATH. then try this export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/fglrx or export LD_LIBRARY_PATH=/usr/lib/fglrx:$LD_LIBRARY_PATH

0 Likes