summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLPlatform.java
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2015-09-19 15:20:23 -0500
committerWade Walker <[email protected]>2015-11-08 14:05:29 -0600
commit4638f4b3fdf4c946bda0b290a83652e4db00edea (patch)
tree7d027b893fbf1d55d578e2f156186075a092810c /src/com/jogamp/opencl/CLPlatform.java
parent9a90181ed1fb596275fee9ebca0f3d1093722ca9 (diff)
Factor out common custom C and Java code to reduce duplication
Consolidated C custom code so common functions are only defined once in the 1.1 version, then are called from the 1.2 and 2.0 version. Pulled common code in CLImpl up into the autogenerated implementation class and removed the hand-written implementation (since it was left empty). Factored custom Java code out so there was as little duplication as possible across the three CLImpl versions, with common code for all three versions in clImplCustomCode.java.
Diffstat (limited to 'src/com/jogamp/opencl/CLPlatform.java')
-rw-r--r--src/com/jogamp/opencl/CLPlatform.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java
index 17fbe66f..f0faa0fb 100644
--- a/src/com/jogamp/opencl/CLPlatform.java
+++ b/src/com/jogamp/opencl/CLPlatform.java
@@ -46,7 +46,6 @@ import com.jogamp.opencl.llb.CLEventBinding;
import com.jogamp.opencl.llb.CLMemObjBinding;
import com.jogamp.opencl.spi.CLPlatformInfoAccessor;
import com.jogamp.opencl.util.CLUtil;
-import com.jogamp.opencl.llb.impl.CLAbstractImpl11;
import com.jogamp.opencl.llb.impl.CLImpl11;
import com.jogamp.opencl.spi.CLAccessorFactory;
import com.jogamp.opencl.util.Filter;
@@ -145,7 +144,7 @@ public class CLPlatform {
* @returns true if OpenCL is available on this machine,
* i.e. all native libraries could be loaded (CL and CL/JNI).
*/
- public static boolean isAvailable() { return CLAbstractImpl11.isAvailable(); }
+ public static boolean isAvailable() { return CLImpl11.isAvailable(); }
/**
* Eagerly initializes JOCL. Subsequent calls do nothing.
@@ -176,7 +175,7 @@ public class CLPlatform {
}
}
- if( !CLAbstractImpl11.isAvailable() ) {
+ if( !CLImpl11.isAvailable() ) {
throw new JogampRuntimeException("JOCL is not available");
}
cl = new CLImpl11();