diff options
Diffstat (limited to 'src/com/jogamp/opencl/CLPlatform.java')
-rw-r--r-- | src/com/jogamp/opencl/CLPlatform.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java index 2fd7d3f1..cbde8b6e 100644 --- a/src/com/jogamp/opencl/CLPlatform.java +++ b/src/com/jogamp/opencl/CLPlatform.java @@ -11,6 +11,7 @@ import com.jogamp.opencl.util.CLUtil; import com.jogamp.opencl.impl.CLImpl; import com.jogamp.opencl.impl.CLProcAddressTable; import com.jogamp.opencl.util.Filter; +import com.jogamp.opencl.util.JOCLVersion; import java.nio.ByteBuffer; import java.nio.IntBuffer; @@ -108,7 +109,11 @@ public final class CLPlatform { // System.out.println("\n"+table); // System.out.println("unavailable functions: "+table.getNullPointerFunctions()); + }catch(UnsatisfiedLinkError ex) { + System.err.println(JOCLVersion.getAllVersions()); + throw ex; }catch(Exception ex) { + System.err.println(JOCLVersion.getAllVersions()); throw new JogampRuntimeException("JOCL initialization error.", ex); } |