Jogamp
Fix crashes due to AMD driver bugs.
authorWade Walker <wwalker3@austin.rr.com>
Sat, 8 Mar 2014 22:17:36 +0000 (16:17 -0600)
committerWade Walker <wwalker3@austin.rr.com>
Sat, 8 Mar 2014 22:17:36 +0000 (16:17 -0600)
commit7a7f87a1fc7419f758ba9b134764ae544fd6d566
treeb640a9e29883b46444d6f01334f8e8cacf1a8431
parent7ab26044167c84fc6386cc179e8a8736d8978c91
Fix crashes due to AMD driver bugs.

programBinariesTest() failure was due to AMD drivers crashing
in clCreateKernelsInProgram() when the program is not built yet,
instead of returning error code CL_INVALID_PROGRAM_EXECUTABLE as they
should.

lowLevelVectorAddTest() failure was apparently due to the AMD drivers
writing past the end of a direct byte buffer in such a way that it made
System.gc() crash when called during teardown (this crash didn't even
dump stack). Making the buffer larger solved the problem.
src/com/jogamp/opencl/CLPlatform.java
test/com/jogamp/opencl/CLProgramTest.java
test/com/jogamp/opencl/LowLevelBindingTest.java
http://JogAmp.org git info: FAQ, tutorial and man pages.