Login  Register

Intel SDK + HelloJOCL

Posted by danoliv on May 06, 2011; 1:29pm
URL: https://forum.jogamp.org/Intel-SDK-HelloJOCL-tp2908132.html

Hi Everybody,

I installed the Intel SDK, runned few example successfully with VisualStudio and after I try JOCL into Netbeans IDE, I added all the jars and the Djava.library.path points to the jocl\lib. Everything looks fine, it compiles but I got this error when I execute it:

Exception in thread "main" com.jogamp.opencl.CLException$CLPlatformNotFoundKhrException: can not enumerate platforms [error: CL_PLATFORM_NOT_FOUND_KHR]
        at com.jogamp.opencl.CLException.checkForError(CLException.java:67)
        at com.jogamp.opencl.CLPlatform.listCLPlatforms(CLPlatform.java:226)
        at com.jogamp.opencl.CLPlatform.listCLPlatforms(CLPlatform.java:212)
        at com.jogamp.opencl.CLPlatform.getDefault(CLPlatform.java:182)
        at com.jogamp.opencl.CLContext.create(CLContext.java:168)
        at com.jogamp.opencl.CLContext.create(CLContext.java:143)
        at jocltest.Main.main(Main.java:33)

I try with OpenCL Info utility and I got the same error, what is the possible cause?

I'm running Windows 7 on a recent Intel i5, Netbeans 6.9.1 and the last Intel OpenCl SDK.
Please help me!

Thanks a lot!

Andrea