summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLCommandQueue.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/CLCommandQueue.java')
-rw-r--r--src/com/mbien/opencl/CLCommandQueue.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java
index 05042333..a33593ad 100644
--- a/src/com/mbien/opencl/CLCommandQueue.java
+++ b/src/com/mbien/opencl/CLCommandQueue.java
@@ -990,6 +990,15 @@ public class CLCommandQueue extends CLObject implements CLResource {
}
/**
+ * Calls {@native clFlush}.
+ */
+ public CLCommandQueue flush() {
+ int ret = cl.clFlush(ID);
+ checkForError(ret, "can not flush command queue");
+ return this;
+ }
+
+ /**
* Returns true only when {@link Mode#PROFILING_MODE} has been enabled.
*/
public boolean isProfilingEnabled() {