summaryrefslogtreecommitdiffstats
path: root/gpudirect.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-06-17 21:14:09 +0200
committerSuren A. Chilingaryan <csa@suren.me>2016-06-17 21:14:09 +0200
commit8a59e1d17a83e4744071dfa790db974c296c206e (patch)
tree935fed6d263103b2249286d5fcd9b28470e45317 /gpudirect.h
parenta6f3e96f2cafc183ab29e53007a86bb968d654b8 (diff)
downloadgdrtest-8a59e1d17a83e4744071dfa790db974c296c206e.tar.gz
gdrtest-8a59e1d17a83e4744071dfa790db974c296c206e.tar.bz2
gdrtest-8a59e1d17a83e4744071dfa790db974c296c206e.tar.xz
gdrtest-8a59e1d17a83e4744071dfa790db974c296c206e.zip
Use undocumented event-based APIHEADmaster
Diffstat (limited to 'gpudirect.h')
-rw-r--r--gpudirect.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/gpudirect.h b/gpudirect.h
new file mode 100644
index 0000000..9449ff9
--- /dev/null
+++ b/gpudirect.h
@@ -0,0 +1,29 @@
+enum CU_STREAM_WAIT_FLAGS {
+ CU_STREAM_WAIT_VALUE_GEQ = 0x0,
+ CU_STREAM_WAIT_VALUE_EQ = 0x1,
+ CU_STREAM_WAIT_VALUE_AND = 0x2,
+ CU_STREAM_WAIT_VALUE_FLUSH = 1<<30
+};
+
+enum CU_STREAM_WRITE_FLAGS {
+ CU_STREAM_WRITE_VALUE_NO_MEMORY_BARRIER = 0x1
+};
+
+enum CU_STREAM_MEM_OP_FLAGS {
+ CU_STREAM_MEM_OP_WAIT_VALUE_32 = 1,
+ CU_STREAM_MEM_OP_WRITE_VALUE_32 = 2,
+ CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES = 3
+};
+
+# ifdef __cplusplus
+extern "C" {
+# endif
+
+CUresult cuStreamWaitValue32(CUstream stream, CUdeviceptr addr, uint32_t value, unsigned int flags);
+CUresult cuStreamWriteValue32(CUstream stream, CUdeviceptr addr, uint32_t value, unsigned int flags);
+//CUresult cuStreamBatchMemOp(CUstream stream, unsigned int count, CUstreamBatchMemOpParams *paramArray, unsigned int flags);
+
+
+# ifdef __cplusplus
+}
+# endif