aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLPlatform.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-11-18 02:50:04 +0100
committerMichael Bien <[email protected]>2010-11-18 02:50:04 +0100
commit0e7aa3b2d14153e024cd3462ca7179d579a3c99a (patch)
tree055c74eeb94d89a2483394366f2bdf1e3f546bc1 /src/com/jogamp/opencl/CLPlatform.java
parent5fa0a7027a4edcad76f182b344ababfb29a58a8e (diff)
added JOCLVersion utility and integrated in CLPlatform.
added spec version to manifest, updated CLInfo.
Diffstat (limited to 'src/com/jogamp/opencl/CLPlatform.java')
-rw-r--r--src/com/jogamp/opencl/CLPlatform.java5
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);
}