From 735c9cbbec16457358eee7424a0533fcc1b8c64c Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Thu, 24 Jun 2010 23:05:04 +0200 Subject: added CLVersion utility class and corresponding API. version checks in unit tests. GLProfile.initSingleton() workaround in CLGLTest. --- src/com/jogamp/opencl/util/CLUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/jogamp/opencl/util/CLUtil.java') diff --git a/src/com/jogamp/opencl/util/CLUtil.java b/src/com/jogamp/opencl/util/CLUtil.java index 6649698c..973c0dc9 100644 --- a/src/com/jogamp/opencl/util/CLUtil.java +++ b/src/com/jogamp/opencl/util/CLUtil.java @@ -47,8 +47,9 @@ public class CLUtil { Map map = new LinkedHashMap(); map.put("CL_PLATFORM_NAME", platform.getName()); map.put("CL_PLATFORM_PROFILE", platform.getProfile()); - map.put("CL_PLATFORM_VERSION", platform.getVersion()); + map.put("CL_PLATFORM_VERSION", platform.getVersion().toString()); map.put("CL_PLATFORM_VENDOR", platform.getVendor()); + map.put("CL_PLATFORM_ICD_SUFFIX", platform.getICDSuffix()); map.put("CL_PLATFORM_EXTENSIONS", platform.getExtensions().toString()); // map.put("fastest device (estimated)", platform.getMaxFlopsDevice().toString()); -- cgit v1.2.3