I am trying to push a LongBuffer to GPU. IntBuffer or ByteBuffer works smoothly, but when I use LongBuffer then I experience an exception:
run:
Exception in thread "main" java.lang.RuntimeException: Unexpected buffer type java.nio.DirectLongBufferU
at com.jogamp.opencl.CLMemory.sizeOfBufferElem(CLMemory.java:100)
at com.jogamp.opencl.CLBuffer.create(CLBuffer.java:85)
at com.jogamp.opencl.CLContext.createBuffer(CLContext.java:367)
at com.jogamp.opencl.CLContext.createBuffer(CLContext.java:360)
at streampacker.Main.main(Main.java:42)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
File Main.java:
http://pastebin.com/7w5d7HaKFile CLSetup.java:
http://pastebin.com/RmpUG9xYSorry, that I haven't reduced the sample to minimum. I'll download and try fresh devbuild now.
Edit:
The same exception on newest build, JOCL b328 from 5'th April 2011.