Intel SDK + HelloJOCL

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Intel SDK + HelloJOCL

danoliv
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
Reply | Threaded
Open this post in threaded view
|

Re: Intel SDK + HelloJOCL

danoliv
I thinks that the OpenCL.dll into C:/Windows/system32 isn't loaded
Reply | Threaded
Open this post in threaded view
|

Re: Intel SDK + HelloJOCL

Michael Bien
In reply to this post by danoliv
  Hello Andrea,

i ran a quick test on win7/64bit JVM/intel SDK and it all worked fine.
However i have also the AMD SDK on my test system, which could be a
reason why it works.

The intel SDK is still in alpha (AFAIK) it is possible that the vendor
abstraction layer is still buggy. Sad that the intel installer does not
let me install it in virtual box... so i can't test on a "clean" system.

(on my other system i have NV+AMD+Intel... works too)

best regards,
michael

On 05/06/2011 03:29 PM, Andrea [via jogamp] wrote:

> 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
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/Intel-SDK-HelloJOCL-tp2908132p2908132.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/

Reply | Threaded
Open this post in threaded view
|

Re: Intel SDK + HelloJOCL

Wibowit
In reply to this post by danoliv
Try running some native demo (ie. not written for JOCL, but in C/ C++). If native apps fails then almost surely JOCL also won't run properly.

Intel SDK should contain some native demos. Try running some of them.
Reply | Threaded
Open this post in threaded view
|

Re: Intel SDK + HelloJOCL

danoliv
Thanks but the demo in the sdk works fine (compiled with VisualStudio 2008 express)
Reply | Threaded
Open this post in threaded view
|

Re: Intel SDK + HelloJOCL

Michael Bien
  tested on linux and windows and it works as expected, junit tests on
latest intel sdk are green too.

something might be wrong with your library paths.

reinstalling windows helps usually if i remember correctly :P (this was
a joke!)

best regards,
michael

On 05/06/2011 05:39 PM, danoliv [via jogamp] wrote:
> Thanks but the demo in the sdk works fine (compiled with VisualStudio 2008
> express)
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/Intel-SDK-HelloJOCL-tp2908132p2908717.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit