summaryrefslogtreecommitdiffstats
path: root/gpudirect.h
blob: 9449ff96d1dae9dc3c492dfcbde0354aeaeccd70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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