From 0874fa955c0401dba9f54816a9654bb4380abed8 Mon Sep 17 00:00:00 2001 From: Wade Walker Date: Sat, 8 Feb 2014 14:00:41 -0600 Subject: Fix unit test bugs on Mac OS X 64-bit. This commit fixes bugs 959 (local work size set incorrectly), 960 (concurrencyTest() throws ConcurrentModificationException) 963 (programBinariesTest() causes SIGSEGV) and 964 (builderTest() cases CL_INVALID_VALUE). After this commit, all JOCL tests should pass on 64-bit Mac OS X. --- src/com/jogamp/opencl/CLDevice.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/com/jogamp/opencl/CLDevice.java') diff --git a/src/com/jogamp/opencl/CLDevice.java b/src/com/jogamp/opencl/CLDevice.java index b47deb2b..25fb009f 100644 --- a/src/com/jogamp/opencl/CLDevice.java +++ b/src/com/jogamp/opencl/CLDevice.java @@ -634,6 +634,15 @@ public class CLDevice extends CLObject { return isExtensionAvailable("cl_khr_fp64"); } + /** + * Returns {@link #isExtensionAvailable}("cl_khr_icd"). + * @see #getExtensions() + */ + @CLProperty("cl_khr_icd") + public boolean isICDAvailable() { + return isExtensionAvailable("cl_khr_icd"); + } + /** * Returns {@link #isExtensionAvailable}("cl_khr_gl_sharing") || {@link #isExtensionAvailable}("cl_APPLE_gl_sharing"). * @see #getExtensions() @@ -850,7 +859,7 @@ public class CLDevice extends CLObject { ROUND_TO_NEAREST(CL_FP_ROUND_TO_NEAREST), /** - * round to +ve and –ve infinity rounding modes supported. + * round to positive and negative infinity rounding modes supported. */ ROUND_TO_INF(CL_FP_ROUND_TO_INF), -- cgit v1.2.3