How to run jocl tests?

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

How to run jocl tests?

chan
Hi.

I want play all of jocl demos in here, ( http://jogamp.org/jocl-demos/www/ )
but some of demos doing nothing in my system.

here is my system list
 A. win7 + geforce 210 + intel core i5 760 with intel sdk , cuda sdk.
 B. Mac 10.7 and Mac 10.8

here is result list.
 1. launch OpenCL Info utility.
     - success in [system A]
     - success in [system B]
 2. launch Simple gamma correction using BufferedImages.
     - success in [system A]
     - fail in [system B]
 3. launch 3D interactive Julia fractal.
     - all fail ( nothing appears in java created window )
 4. launch Multi device Mandelbrot fractal.
     - in [system A], fractal appeared when window resizing.
     - fail in [system B]
 5. launch OpenGL-OpenCL memory sharing.
     - all fail ( nothing appears in java created window )


something need for this demos? I just click link and run *.jnlp.
Please give me advice something i missed.

thanks.

chan
Reply | Threaded
Open this post in threaded view
|

Re: How to run jocl tests?

gouessej
Administrator
Hi

Please enable the Java console and tell us which error message(s) or stack trace(s) you get.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: How to run jocl tests?

chan
Thanks for your concern.
Im interested in GLCL Memory sharing. so please look #5's log.

Here is system A's messages below.

3. launch 3D interactive Julia fractal.
----------------------------------------------------
Could not launch from cache. Will try online mode. [Need to update: force update set in LAP]
#### Java Web Start Error:
#### can not create CL context [error: CL_OUT_OF_RESOURCES]



5. launch OpenGL-OpenCL memory sharing.
----------------------------------------------------
{CLDevice [id: 182189160 name: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz type: CPU profile: FULL_PROFILE]=BUILD_SUCCESS}
true
CLDevice [id: 182189160 name: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz type: CPU profile: FULL_PROFILE] build log:
Compilation started
Compilation done
Linking started
Linking done
Kernel <sineWave> was successfully vectorized
Done.
cl buffer type: GL_OBJECT_BUFFER
shared with gl buffer: 1
cl initialised
Exception in thread "AWT-EventQueue-0-AWTAnimator" java.lang.RuntimeException: com.jogamp.opencl.CLException$CLInvalidOperationException: can not enqueue 2DRange CLKernel [id: 358502136 name: sineWave]
 with gwo: null gws: {256, 256} lws: null
cond.: null events: null [error: CL_INVALID_OPERATION]
        at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
        at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:100)
        at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:205)
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
        at javax.media.opengl.Threading.invoke(Threading.java:191)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:440)
        at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:197)
        at java.lang.Thread.run(Unknown Source)
Caused by: com.jogamp.opencl.CLException$CLInvalidOperationException: can not enqueue 2DRange CLKernel [id: 358502136 name: sineWave]
 with gwo: null gws: {256, 256} lws: null
cond.: null events: null [error: CL_INVALID_OPERATION]
        at com.jogamp.opencl.CLException.newException(CLException.java:78)
        at com.jogamp.opencl.CLCommandQueue.putNDRangeKernel(CLCommandQueue.java:1614)
        at com.jogamp.opencl.CLCommandQueue.put2DRangeKernel(CLCommandQueue.java:1522)
        at com.jogamp.opencl.CLCommandQueue.put2DRangeKernel(CLCommandQueue.java:1482)
        at com.jogamp.opencl.demos.joglinterop.GLCLInteroperabilityDemo.computeHeightfield(GLCLInteroperabilityDemo.java:238)
        at com.jogamp.opencl.demos.joglinterop.GLCLInteroperabilityDemo.display(GLCLInteroperabilityDemo.java:210)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:588)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:572)
        at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1034)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:909)
        at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)



Reply | Threaded
Open this post in threaded view
|

Re: How to run jocl tests?

chan0110
In reply to this post by gouessej
And.... mac 10.7.5(intel core i7 + ATI Radeon HD 6490M) logs at #5. clglinterop test

If you need any information about my system or something, plz let me know.

Anyway, thanks again.

----------------------------------------------------
Missing Codebase manifest attribute for: http://jogamp.org/deployment/archive/rc/v2.0.2/jar/jocl.jar
Missing Codebase manifest attribute for: http://jogamp.org/deployment/archive/rc/v2.0.2/jar/gluegen-rt.jar
Missing Codebase manifest attribute for: http://jogamp.org/deployment/archive/rc/v2.0.2/jar/jocl.jar
Missing Codebase manifest attribute for: http://jogamp.org/deployment/archive/rc/v2.0.2/jar/gluegen-rt.jar
JNLPClassLoader: Finding library liblibGLESv1_CM.so.2.dylib
JNLPClassLoader: Finding library liblibGLESv1_CM.so.dylib
JNLPClassLoader: Finding library libGLESv1_CM.dylib
JNLPClassLoader: Finding library libGLES_CM.dylib
JNLPClassLoader: Finding library libGLES_CL.dylib
JNLPClassLoader: Finding library liblibGLESv1_CM.dylib
JNLPClassLoader: Finding library liblibGLES_CM.dylib
JNLPClassLoader: Finding library liblibGLES_CL.dylib
JNLPClassLoader: Finding library liblibEGL.so.1.dylib
JNLPClassLoader: Finding library liblibEGL.so.dylib
JNLPClassLoader: Finding library libEGL.dylib
JNLPClassLoader: Finding library liblibEGL.dylib
JNLPClassLoader: Finding library liblibGLESv3.so.3.dylib
JNLPClassLoader: Finding library liblibGLESv3.so.dylib
JNLPClassLoader: Finding library libGLESv3.dylib
JNLPClassLoader: Finding library libGLES30.dylib
JNLPClassLoader: Finding library liblibGLESv3.dylib
JNLPClassLoader: Finding library liblibGLES30.dylib
JNLPClassLoader: Finding library liblibGLESv2.so.2.dylib
JNLPClassLoader: Finding library liblibGLESv2.so.dylib
JNLPClassLoader: Finding library libGLESv2.dylib
JNLPClassLoader: Finding library libGLES20.dylib
JNLPClassLoader: Finding library libGLESv2_CM.dylib
JNLPClassLoader: Finding library liblibGLESv2.dylib
JNLPClassLoader: Finding library liblibGLESv2_CM.dylib
JNLPClassLoader: Finding library liblibGLES20.dylib
JNLPClassLoader: Finding library liblibEGL.so.1.dylib
JNLPClassLoader: Finding library liblibEGL.so.dylib
JNLPClassLoader: Finding library libEGL.dylib
JNLPClassLoader: Finding library liblibEGL.dylib
JNLPClassLoader: Finding library libOpenCL.dylib
Exception in thread "AWT-EventQueue-2" com.jogamp.opencl.CLException$CLInvalidValueException: can not create CL context [error: CL_INVALID_VALUE]
        at com.jogamp.opencl.CLException.checkForError(CLException.java:67)
        at com.jogamp.opencl.CLContext.createContext(CLContext.java:231)
        at com.jogamp.opencl.gl.CLGLContext.create(CLGLContext.java:126)
        at com.jogamp.opencl.demos.joglinterop.GLCLInteroperabilityDemo.init(GLCLInteroperabilityDemo.java:133)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:540)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:562)
        at javax.media.opengl.awt.GLCanvas$6.run(GLCanvas.java:1037)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1032)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:909)
        at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
        at javax.media.opengl.Threading.invoke(Threading.java:193)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
        at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:537)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
        at sun.lwawt.LWRepaintArea.paintComponent(LWRepaintArea.java:54)
        at sun.awt.RepaintArea.paint(RepaintArea.java:240)
        at sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1277)
        at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1165)
        at java.awt.Component.dispatchEventImpl(Component.java:4937)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:708)
        at java.awt.EventQueue$4.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at com.jogamp.opencl.demos.joglinterop.GLCLInteroperabilityDemo.computeHeightfield(GLCLInteroperabilityDemo.java:236)
        at com.jogamp.opencl.demos.joglinterop.GLCLInteroperabilityDemo.display(GLCLInteroperabilityDemo.java:210)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:588)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:572)
        at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1034)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:909)
        at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
        at javax.media.opengl.Threading.invoke(Threading.java:193)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
        at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:537)
        at javax.media.opengl.awt.GLCanvas.update(GLCanvas.java:719)
        at sun.awt.RepaintArea.updateComponent(RepaintArea.java:255)
        at sun.lwawt.LWRepaintArea.updateComponent(LWRepaintArea.java:42)
        at sun.awt.RepaintArea.paint(RepaintArea.java:232)
        at sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1277)
        at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1165)
        at java.awt.Component.dispatchEventImpl(Component.java:4937)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:708)
        at java.awt.EventQueue$4.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Reply | Threaded
Open this post in threaded view
|

Re: How to run jocl tests?

gouessej
Administrator
chan wrote
#### can not create CL context [error: CL_OUT_OF_RESOURCES]
This demo simply requires too much memory, it's crystal clear.

chan wrote
Caused by: com.jogamp.opencl.CLException$CLInvalidOperationException: can not enqueue 2DRange CLKernel [id: 358502136 name: sineWave]
 with gwo: null gws: {256, 256} lws: null
cond.: null events: null [error: CL_INVALID_OPERATION]
Your hardware should support OpenCL 1.1 and OpenGL 4.1 as far as I know. I don't know why this operation is invalid.

chan0110 wrote
Exception in thread "AWT-EventQueue-2" com.jogamp.opencl.CLException$CLInvalidValueException: can not create CL context [error: CL_INVALID_VALUE]
Have you ever succeeded in running at least one demo using JOCL?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: How to run jocl tests?

gouessej
Administrator
In reply to this post by chan0110
Please can you run a more simple example first? Does HelloJOCL work on your machine?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: How to run jocl tests?

chan
Today I was succeed play #5 demo in win7 system!

first erase Intel opencl sdk platform.
then, error message change to CL_OUT_OF_RESOURCE.
second, reboot system. that's all.

I guess multiple cl platforms gave some side effect.


Anyway, Thanks your reply!

And one more additional question.

Did you ever try clCreateContext with EGLContext?

In my window system ( and in my sample project ), return error code CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR.

Is it my graphic card (geforce 210) problem? or my EGL library don't support openCL sharing?

What should I do?
Reply | Threaded
Open this post in threaded view
|

Re: How to run jocl tests?

gouessej
Administrator
EGL should work mainly in embedded environments:
http://www.khronos.org/egl
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: How to run jocl tests?

chal2oye
Today I was succeed play #5 demo in win7 system!

first erase Intel opencl sdk platform.
then, error message change to CL_OUT_OF_RESOURCE.
second, reboot system. that's all.

I guess multiple cl platforms gave some side effect.
GuL