@@ -30,15 +30,16 @@ typedef uintptr_t CUdeviceptr;
3030typedef struct CUmod_st *CUmodule;
3131typedef struct CUctx_st *CUcontext;
3232typedef struct CUfunc_st *CUfunction;
33+ typedef void (*CUhostFn)(void *userData);
3334typedef struct CUstream_st *CUstream;
3435typedef struct CUevent_st *CUevent;
3536
36- #define CU_DEVICE_INVALID ((CUdevice)- 2 )
37+ #define CU_DEVICE_INVALID ((CUdevice)(- 2 ) )
3738
3839typedef unsigned long long CUmemGenericAllocationHandle_v1;
3940typedef CUmemGenericAllocationHandle_v1 CUmemGenericAllocationHandle;
4041
41- #define CU_DEVICE_INVALID ((CUdevice)- 2 )
42+ #define CU_DEVICE_INVALID ((CUdevice)(- 2 ) )
4243
4344typedef enum CUmemAllocationGranularity_flags_enum {
4445 CU_MEM_ALLOC_GRANULARITY_MINIMUM = 0x0 ,
@@ -304,6 +305,7 @@ CUresult cuInit(unsigned);
304305CUresult cuLaunchKernel (CUfunction, unsigned , unsigned , unsigned , unsigned ,
305306 unsigned , unsigned , unsigned , CUstream, void **,
306307 void **);
308+ CUresult cuLaunchHostFunc (CUstream, CUhostFn, void *);
307309
308310CUresult cuMemAlloc (CUdeviceptr *, size_t );
309311CUresult cuMemAllocHost (void **, size_t );
0 commit comments