Login  Register

Re: How to load compiled programs?

Posted by Michael Bien on Apr 19, 2011; 2:33am
URL: https://forum.jogamp.org/How-to-load-compiled-programs-tp2835385p2837274.html

should be fixed in the upcoming builds. The junit test failed to simulate a device id change (releasing the context was not sufficient, restarting the VM would have been needed).
https://github.com/mbien/jocl/commit/03ce3ff819e342b95552c1438ea1269fd30e7176

The public methods of CLProgramBuilder are exposed via its interfaces CLProgramConfiguration and CLBuildConfiguration. Its a mix of builder pattern and fluent interface. You are probably already using them in your code.

-michael

Wibowit wrote
I have implemented something very similiar to those techniques but now my program crashes JVM.

New version of project is here (along with crash logs):
http://www62.zippyshare.com/v/13793986/file.html

It crashes at CLProgramBuilder.loadConfiguration(ObjectInputStream, CLContext);

By the way, weird class hierarchy. CLProgramBuilder has public non-static methods, but there's no way to create object of type CLProgramBuilder.