diff options
author | Wade Walker <[email protected]> | 2015-09-12 14:28:16 -0500 |
---|---|---|
committer | Wade Walker <[email protected]> | 2015-11-08 14:05:29 -0600 |
commit | 9a90181ed1fb596275fee9ebca0f3d1093722ca9 (patch) | |
tree | d9fbcc4fbb6c54bae64e5c0160f3a28a2ca0e934 /src/com/jogamp/opencl/CLPlatform.java | |
parent | e56a17d6d7780b8597c78ce50808c8da68d094b5 (diff) |
Add explicit version number to original CL impl classes.
This makes all three versions (1.1, 1.2, and 2.0) use the same naming
convention, and sets me up to use the unversioned name to factor out
code common to all three.
Diffstat (limited to 'src/com/jogamp/opencl/CLPlatform.java')
-rw-r--r-- | src/com/jogamp/opencl/CLPlatform.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java index d63f6708..17fbe66f 100644 --- a/src/com/jogamp/opencl/CLPlatform.java +++ b/src/com/jogamp/opencl/CLPlatform.java @@ -46,8 +46,8 @@ 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.CLAbstractImpl; -import com.jogamp.opencl.llb.impl.CLImpl; +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 +145,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 CLAbstractImpl.isAvailable(); } + public static boolean isAvailable() { return CLAbstractImpl11.isAvailable(); } /** * Eagerly initializes JOCL. Subsequent calls do nothing. @@ -176,10 +176,10 @@ public class CLPlatform { } } - if( !CLAbstractImpl.isAvailable() ) { + if( !CLAbstractImpl11.isAvailable() ) { throw new JogampRuntimeException("JOCL is not available"); } - cl = new CLImpl(); + cl = new CLImpl11(); } /** |