cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

fredost
Journeyman III

OpenCL/OpenGL interoperability on Fusion platform

I've made an application that uses an OpenCL kernel to write in an OpenGL texture. It works fine on my laptop which has a AMD Radeon HD 6900M card, but it fails on a PC with an AMD Fusion chip (with AMD Radeon 6310). Is CL/GL interoperability supported on AMD Fusion boards?

I use Linux/64bit and Catalyst 11.11 on both machines. On the Fusion board, I get the error CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR when creating the CL context (same code works fine on laptop!).

Thanks!

0 Likes
7 Replies
nou
Exemplar

OpenCL/OpenGL interoperability on Fusion platform

can you run SimpleGL example from SDK?

0 Likes
fredost
Journeyman III

OpenCL/OpenGL interoperability on Fusion platform

Originally posted by: nou can you run SimpleGL example from SDK?

 

I can't find that example. Should it be in the AMDAPP SDK?

0 Likes
nou
Exemplar

OpenCL/OpenGL interoperability on Fusion platform

yes

0 Likes
fredost
Journeyman III

OpenCL/OpenGL interoperability on Fusion platform

I get exactly the same problem with the SimpleGL example. It fails when creating the context with the error CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR.

Platform 0 : Advanced Micro Devices, Inc.

Selected Platform Vendor : Advanced Micro Devices, Inc.
Device 0 : Loveland
Interop Device ID is 0xd3e360
Error: clCreateContext failed. Error code : CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR

0 Likes
nou
Exemplar

OpenCL/OpenGL interoperability on Fusion platform

then it must some driver issue. i can run SimpleGL example (and others CL/GL app) on my E-350 based netbook. my system is ubuntu 11.10.

try run "export LD_LIBRARY_PATH=/usr/lib/fglrx" it helps me with other CL/GL issue.

0 Likes
fredost
Journeyman III

OpenCL/OpenGL interoperability on Fusion platform

What driver are you using? Is it 32bit or 64bit?

0 Likes
nou
Exemplar

OpenCL/OpenGL interoperability on Fusion platform

cataylst 11.11 and 11.12 both SDK 2.5 and 2.6 and 64 bit.

0 Likes