From c2fb5e086ad664c78e5713045c2faed9dfe16a7b Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 21 Nov 2010 21:31:20 +0100 Subject: CLInfo demo prints now lib versioning info additional to the CL properties. --- src/com/jogamp/opencl/demos/info/CLInfo.java | 9 +++++++-- 1 file 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; } -- cgit v1.2.3