Login  Register

How to load compiled programs?

Posted by Wibowit on Apr 18, 2011; 5:53pm
URL: https://forum.jogamp.org/How-to-load-compiled-programs-tp2835385.html

Hi,

I'm trying to use that feature as compilation is a lenghty process. Unfortunately I fail. Instead of loading binary I'm getting an error:
run:
Using cached kernel.
Exception in thread "main" com.jogamp.opencl.CLException$CLInvalidKernelNameException:
 unable to create Kernel with name: sort16PairsPlusLocal [error: CL_INVALID_KERNEL_NAME]
        at com.jogamp.opencl.CLException.newException(CLException.java:78)
        at com.jogamp.opencl.CLProgram.createCLKernel(CLProgram.java:406)
        at streampacker.Main.main(Main.java:96)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)

Note that this exception is related to kernel creation, so it's raised a bit later than actual OpenCL program loading.

My program is here: http://www60.zippyshare.com/v/68110096/file.html

Interesting classes are: KernelsManager, and class Main, lines 74 to 100.