summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLMemory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/CLMemory.java')
-rw-r--r--src/com/mbien/opencl/CLMemory.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLMemory.java b/src/com/mbien/opencl/CLMemory.java
index 2d12ca31..0c59e0c5 100644
--- a/src/com/mbien/opencl/CLMemory.java
+++ b/src/com/mbien/opencl/CLMemory.java
@@ -38,10 +38,12 @@ public abstract class CLMemory <B extends Buffer> implements CLResource {
this.ID = id;
}
+ /**
+ * Returns true if a host pointer must be specified on mem object creation.
+ */
protected static final boolean isHostPointerFlag(int flags) {
return (flags & CL_MEM_COPY_HOST_PTR) != 0
- || (flags & CL_MEM_USE_HOST_PTR) != 0
- || (flags & CL_MEM_ALLOC_HOST_PTR)!= 0;
+ || (flags & CL_MEM_USE_HOST_PTR) != 0;
}
protected static final int sizeOfBufferElem(Buffer buffer) {