summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/JoclVersion.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-09-03 03:16:10 +0200
committerSven Gothel <[email protected]>2014-09-03 03:16:10 +0200
commitc720767642618cfb4f3739dc6962cde0465e25c5 (patch)
treebb19fc9907a81b01432166f6621e94693a6ba3e3 /src/com/jogamp/opencl/JoclVersion.java
parent87eb9b93c250a0a8746176cbac9448ea62f26afa (diff)
Bug 978: Promote CLAbstractImpl.isAvailable() to CLPlatform, public API. isAvailable() simply shall return true if JOCL/OpenCL libs could be loaded.
- Promote CLAbstractImpl.isAvailable() to CLPlatform, public API. - CLAbstractImpl.isAvailable() simply shall return true if JOCL/OpenCL libs could be loaded.
Diffstat (limited to 'src/com/jogamp/opencl/JoclVersion.java')
-rw-r--r--src/com/jogamp/opencl/JoclVersion.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/JoclVersion.java b/src/com/jogamp/opencl/JoclVersion.java
index 15e868cf..3519add0 100644
--- a/src/com/jogamp/opencl/JoclVersion.java
+++ b/src/com/jogamp/opencl/JoclVersion.java
@@ -247,8 +247,12 @@ public class JoclVersion extends JogampVersion {
// System.err.println(NativeWindowVersion.getInstance());
final JoclVersion v = JoclVersion.getInstance();
System.err.println(v.toString());
- System.err.println(v.getOpenCLTextInfo(null).toString());
- // System.err.println(v.getOpenCLHtmlInfo(null).toString());
+ if( CLPlatform.isAvailable() ) {
+ System.err.println(v.getOpenCLTextInfo(null).toString());
+ // System.err.println(v.getOpenCLHtmlInfo(null).toString());
+ } else {
+ System.err.println("JOCL/OpenCL not available");
+ }
}
}