6 #include <cuda_runtime.h> 10 #define Cuda_RTcall(fn) cudaRuntimeFunctionPointer[fn ## Enum].fn ## Real 11 #define Cuda_Dcall(fn) cuDriverFunctionPointer[fn ## Enum].fn ## Real 15 #include <lib/prof-lean/atomic.h> 20 #include "gpu_blame-cuda-runtime-header.h" 21 #include "gpu_blame-cuda-driver-header.h" 58 EMSG(
"??? Called cuCtxGetCurrent, but fn ptr not set ???");
69 EMSG(
"??? Called cuCtxSetCurrent, but fn ptr not set ???");
79 return (
void*) (ctxt->
ctxt);
cuda_ctxt_t * cuda_capture_ctxt(void)
struct cuda_ctxt_t local_ctxt
void * cuda_get_handle(cuda_ctxt_t *ctxt)
uint64_t cuda_ncontexts_decr(void)
static uint64_t ncontexts
void cuda_ncontexts_reset(void)
uint64_t cuda_ncontexts_incr(void)
void cuda_set_ctxt(cuda_ctxt_t *ctxt)