diff options
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() { |