25 #ifdef KVIKIO_CUDA_FOUND
36 #if defined(_WIN64) || defined(__LP64__)
38 using CUdeviceptr =
unsigned long long;
40 using CUdeviceptr =
unsigned int;
42 static_assert(
sizeof(CUdeviceptr) ==
sizeof(
void*));
46 using CUcontext =
struct CUctx_st*;
47 using CUstream =
struct CUstream_st*;
49 #define CUDA_ERROR_STUB_LIBRARY 0
50 #define CUDA_SUCCESS 0
51 #define CUDA_ERROR_INVALID_VALUE 0
52 #define CU_POINTER_ATTRIBUTE_CONTEXT 0
53 #define CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL 0
54 #define CU_POINTER_ATTRIBUTE_DEVICE_POINTER 0
55 #define CU_MEMHOSTREGISTER_PORTABLE 0
56 #define CU_STREAM_DEFAULT 0
59 CUresult cuMemHostAlloc(...);
60 CUresult cuMemFreeHost(...);
61 CUresult cuMemcpyHtoDAsync(...);
62 CUresult cuMemcpyDtoHAsync(...);
63 CUresult cuPointerGetAttribute(...);
64 CUresult cuPointerGetAttributes(...);
65 CUresult cuCtxPushCurrent(...);
66 CUresult cuCtxPopCurrent(...);
67 CUresult cuCtxGetCurrent(...);
68 CUresult cuMemGetAddressRange(...);
69 CUresult cuGetErrorName(...);
70 CUresult cuGetErrorString(...);
71 CUresult cuDeviceGet(...);
72 CUresult cuDevicePrimaryCtxRetain(...);
73 CUresult cuDevicePrimaryCtxRelease(...);
74 CUresult cuStreamCreate(...);
75 CUresult cuStreamDestroy(...);
76 CUresult cuStreamSynchronize(...);