Login  Register

Re: How to load compiled programs?

Posted by Michael Bien on Apr 18, 2011; 6:03pm
URL: https://forum.jogamp.org/How-to-load-compiled-programs-tp2835385p2835429.html

  take a look at:
CLProgramTest.binariesTest() and builderTest(). Those tests cover
building, rebuilding, building from binaries and serialization.

-michael


On 04/18/2011 07:53 PM, Wibowit [via jogamp] wrote:

>
> 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.
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/How-to-load-compiled-programs-tp2835385p2835385.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit