aboutsummaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-11-21 21:31:20 +0100
committerMichael Bien <[email protected]>2010-11-21 21:31:20 +0100
commitc2fb5e086ad664c78e5713045c2faed9dfe16a7b (patch)
tree7f7be01dfd10188534c790da9cf0f560477d769f /src/com
parentce55087cc7868d949318e08dc751aae946f7035b (diff)
CLInfo demo prints now lib versioning info additional to the CL properties.
Diffstat (limited to 'src/com')
-rw-r--r--src/com/jogamp/opencl/demos/info/CLInfo.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/demos/info/CLInfo.java b/src/com/jogamp/opencl/demos/info/CLInfo.java
index 0975f7b..cfd4c43 100644
--- a/src/com/jogamp/opencl/demos/info/CLInfo.java
+++ b/src/com/jogamp/opencl/demos/info/CLInfo.java
@@ -8,6 +8,7 @@ import com.jogamp.common.JogampRuntimeException;
import com.jogamp.opencl.CLDevice;
import com.jogamp.opencl.CLPlatform;
import com.jogamp.opencl.util.ExceptionReporter;
+import com.jogamp.opencl.util.JOCLVersion;
import java.awt.Container;
import java.util.ArrayList;
import java.util.List;
@@ -26,17 +27,21 @@ import javax.swing.UIManager;
public class CLInfo {
public static void main(String[] args) {
+
+ Logger logger = Logger.getLogger(CLInfo.class.getName());
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception ex) {
- Logger.getLogger(CLInfo.class.getName()).log(Level.INFO, null, ex);
+ logger.log(Level.INFO, null, ex);
}
+ logger.info("\n" + JOCLVersion.getAllVersions());
+
try{
CLPlatform.initialize();
}catch(JogampRuntimeException ex) {
- Logger.getLogger(CLInfo.class.getName()).log(Level.SEVERE, null, ex);
+ logger.log(Level.SEVERE, null, ex);
ExceptionReporter.appear("I tried hard but I really can't initialize JOCL. Is OpenCL properly set up?", ex);
return;
}