@@ -30,15 +30,16 @@ typedef uintptr_t CUdeviceptr;
30
30
typedef struct CUmod_st *CUmodule;
31
31
typedef struct CUctx_st *CUcontext;
32
32
typedef struct CUfunc_st *CUfunction;
33
+ typedef void (*CUhostFn)(void *userData);
33
34
typedef struct CUstream_st *CUstream;
34
35
typedef struct CUevent_st *CUevent;
35
36
36
- #define CU_DEVICE_INVALID ((CUdevice)- 2 )
37
+ #define CU_DEVICE_INVALID ((CUdevice)(- 2 ) )
37
38
38
39
typedef unsigned long long CUmemGenericAllocationHandle_v1;
39
40
typedef CUmemGenericAllocationHandle_v1 CUmemGenericAllocationHandle;
40
41
41
- #define CU_DEVICE_INVALID ((CUdevice)- 2 )
42
+ #define CU_DEVICE_INVALID ((CUdevice)(- 2 ) )
42
43
43
44
typedef enum CUmemAllocationGranularity_flags_enum {
44
45
CU_MEM_ALLOC_GRANULARITY_MINIMUM = 0x0 ,
@@ -304,6 +305,7 @@ CUresult cuInit(unsigned);
304
305
CUresult cuLaunchKernel (CUfunction, unsigned , unsigned , unsigned , unsigned ,
305
306
unsigned , unsigned , unsigned , CUstream, void **,
306
307
void **);
308
+ CUresult cuLaunchHostFunc (CUstream, CUhostFn, void *);
307
309
308
310
CUresult cuMemAlloc (CUdeviceptr *, size_t );
309
311
CUresult cuMemAllocHost (void **, size_t );
0 commit comments