diff options
author | Michael Bien <[email protected]> | 2010-02-01 01:09:18 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-01 01:09:18 +0100 |
commit | e4e7dc4e7a63206c091cd3288adc6a7346f74191 (patch) | |
tree | ab2435f774da803489fd58612e6b1f22a3e46cee /src/com/mbien/opencl/CLDevice.java | |
parent | 2015fa5cd47b9be234f30e4b98d06b83486e4fb2 (diff) |
trivial bugfixes, typo and javadoc warning fixes.
began to switch to gluegen's libloading infrastructure.
added CL extensions accessors to CLPlatform.
optimized isFooEnabled() methods for CLCommandQueue.
Diffstat (limited to 'src/com/mbien/opencl/CLDevice.java')
-rw-r--r-- | src/com/mbien/opencl/CLDevice.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLDevice.java b/src/com/mbien/opencl/CLDevice.java index e754a4bc..c6134248 100644 --- a/src/com/mbien/opencl/CLDevice.java +++ b/src/com/mbien/opencl/CLDevice.java @@ -263,14 +263,14 @@ public final class CLDevice { /** * Returns the size of global memory cache line in bytes. */ - public long getGlobalMemCachlineSize() { + public long getGlobalMemCachelineSize() { return deviceInfo.getLong(CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE); } /** * Returns the size of global memory cache in bytes. */ - public long getGlobalMemCachSize() { + public long getGlobalMemCacheSize() { return deviceInfo.getLong(CL_DEVICE_GLOBAL_MEM_CACHE_SIZE); } @@ -466,6 +466,13 @@ public final class CLDevice { } /** + * Returns true if the extension is supported on this device. + */ + public boolean isExtensionAvailable(String extension) { + return getExtensions().contains(extension); + } + + /** * Returns all device extension names as unmodifiable Set. */ public Set<String> getExtensions() { |