diff options
author | Michael Bien <[email protected]> | 2009-10-12 19:05:13 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-10-12 19:05:13 +0200 |
commit | 223e32b5ce6943abf7c1ac31f1b90d3679de5571 (patch) | |
tree | 435b04350e9be30a19077b94dce660000b975d74 /src/com/mbien/opencl/CLContext.java | |
parent | 2b05a67d30bde1419c2b0f1b5b427d65b8415eb7 (diff) |
cleaned up test output, removed some internal hardcoded fields from CLDevice.
Diffstat (limited to 'src/com/mbien/opencl/CLContext.java')
-rw-r--r-- | src/com/mbien/opencl/CLContext.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/com/mbien/opencl/CLContext.java b/src/com/mbien/opencl/CLContext.java index 533d45d4..bcfb09a0 100644 --- a/src/com/mbien/opencl/CLContext.java +++ b/src/com/mbien/opencl/CLContext.java @@ -1,8 +1,6 @@ package com.mbien.opencl; import com.mbien.opencl.impl.CLImpl; -import java.nio.ByteBuffer; -import java.nio.ByteOrder; import java.nio.IntBuffer; /** @@ -48,8 +46,8 @@ public final class CLContext { type |= deviceTypes[i].CL_TYPE; } - long context = cl.clCreateContextFromType(null, 0, type, null, null, null, 0); - return new CLContext(context); + long ctxID = cl.clCreateContextFromType(null, 0, type, null, null, null, 0); + return new CLContext(ctxID); } /** @@ -124,4 +122,11 @@ public final class CLContext { return platforms; } + /** + * Returns the low level binding interface to the OpenCL APIs. + */ + public static CL getLowLevelBinding() { + return cl; + } + } |