Login  Register

Re: Why CLEventList has fixed size?

Posted by Wibowit on Apr 12, 2011; 7:11pm
URL: https://forum.jogamp.org/Why-CLEventList-has-fixed-size-tp2705613p2812740.html

Well, OpenCL is very immature so there's not much samples to play with. I could prove that automatic collection of events isn't perceptibly slower than manual management, but from what I recently read, AMD doesn't support out-of-order queues so playing with event is a pure waste of time now - events are simply ignored.

As to "prejudices": Java is my platform of choice, ie. I claim that it has many disadvantages and it's badly designed from a number of perspectives, but still it's fast enough, portable and pretty high level. HotSpot developers implemented a number of optimizations so high-level Java code with many layers of indirection performs almost as good as hand optimized code. There's dynamic inlining, escape analysis, generational GC, etc I've chosen Java over C++ mainly because Java does many things automatically. If I would want to have complete control of everything I would use C++. Furthermore, it's possible to integrate native libraries with Java thanks to JNA or JNI, or we can use inter-process communication. Forcing Java code to be low-level is IMO very bad.