diff options
author | Michael Bien <[email protected]> | 2010-09-07 21:26:53 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-09-07 21:26:53 +0200 |
commit | 84edfc7970a0bc828ba38295d88ee6e2a4dabbce (patch) | |
tree | 32db98d8458403e8ee5d6c579852bf626d3ea3a9 /src/com/jogamp/opencl/CLPlatform.java | |
parent | bc4e1521cc2ccc91a033998847dc35e1a8c8687b (diff) |
added com.jogamp.util.CLInfo.
introduced CLProperty annotation for CLDevice and CLPlatform properties.
fixed bug in CLVersion.
Diffstat (limited to 'src/com/jogamp/opencl/CLPlatform.java')
-rw-r--r-- | src/com/jogamp/opencl/CLPlatform.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java index 802a6e9c..5cb9a4d8 100644 --- a/src/com/jogamp/opencl/CLPlatform.java +++ b/src/com/jogamp/opencl/CLPlatform.java @@ -89,7 +89,7 @@ public final class CLPlatform { }); // System.out.println("\n"+table); - System.out.println("unavailable functions: "+table.getNullPointerFunctions()); +// System.out.println("unavailable functions: "+table.getNullPointerFunctions()); }catch(Exception ex) { throw new JogampRuntimeException("JOCL initialization error.", ex); @@ -263,6 +263,7 @@ public final class CLPlatform { /** * Returns the platform name. */ + @CLProperty("CL_PLATFORM_NAME") public String getName() { return getInfoString(CL_PLATFORM_NAME); } @@ -270,6 +271,7 @@ public final class CLPlatform { /** * Returns the OpenCL version supported by this platform. */ + @CLProperty("CL_PLATFORM_VERSION") public CLVersion getVersion() { return version; } @@ -298,6 +300,7 @@ public final class CLPlatform { /** * Returns the platform profile. */ + @CLProperty("CL_PLATFORM_PROFILE") public String getProfile() { return getInfoString(CL_PLATFORM_PROFILE); } @@ -305,6 +308,7 @@ public final class CLPlatform { /** * Returns the platform vendor. */ + @CLProperty("CL_PLATFORM_VENDOR") public String getVendor() { return getInfoString(CL_PLATFORM_VENDOR); } @@ -312,6 +316,7 @@ public final class CLPlatform { /** * Returns the ICD suffix. */ + @CLProperty("CL_PLATFORM_ICD_SUFFIX_KHR") public String getICDSuffix() { return getInfoString(CL_PLATFORM_ICD_SUFFIX_KHR); } @@ -326,6 +331,7 @@ public final class CLPlatform { /** * Returns all platform extension names as unmodifiable Set. */ + @CLProperty("CL_PLATFORM_EXTENSIONS") public Set<String> getExtensions() { if(extensions == null) { |