summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/CLContext.java')
-rw-r--r--src/com/mbien/opencl/CLContext.java13
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;
+ }
+
}