25#ifndef NVTOOLSEXT_CUDA_V3
26#define NVTOOLSEXT_CUDA_V3
49#define NVTX_RESOURCE_CLASS_CUDA 4
57 NVTX_RESOURCE_TYPE_CUDA_DEVICE = NVTX_RESOURCE_MAKE_TYPE(CUDA, 1),
58 NVTX_RESOURCE_TYPE_CUDA_CONTEXT = NVTX_RESOURCE_MAKE_TYPE(CUDA, 2),
59 NVTX_RESOURCE_TYPE_CUDA_STREAM = NVTX_RESOURCE_MAKE_TYPE(CUDA, 3),
60 NVTX_RESOURCE_TYPE_CUDA_EVENT = NVTX_RESOURCE_MAKE_TYPE(CUDA, 4),
75NVTX_DECLSPEC
void NVTX_API nvtxNameCuDeviceW(CUdevice device,
const wchar_t* name);
97NVTX_DECLSPEC
void NVTX_API nvtxNameCuContextW(CUcontext context,
const wchar_t* name);
111NVTX_DECLSPEC
void NVTX_API nvtxNameCuStreamW(CUstream stream,
const wchar_t* name);
125NVTX_DECLSPEC
void NVTX_API nvtxNameCuEventW(CUevent event,
const wchar_t* name);
132 #define nvtxNameCuDevice nvtxNameCuDeviceW
133 #define nvtxNameCuContext nvtxNameCuContextW
134 #define nvtxNameCuStream nvtxNameCuStreamW
135 #define nvtxNameCuEvent nvtxNameCuEventW
137 #define nvtxNameCuDevice nvtxNameCuDeviceA
138 #define nvtxNameCuContext nvtxNameCuContextA
139 #define nvtxNameCuStream nvtxNameCuStreamA
140 #define nvtxNameCuEvent nvtxNameCuEventA
148#define NVTX_IMPL_GUARD_CUDA
149#include "nvtxDetail/nvtxImplCuda_v3.h"
150#undef NVTX_IMPL_GUARD_CUDA
NVTX_DECLSPEC void NVTX_API nvtxNameCuDeviceA(CUdevice device, const char *name)
Annotates a CUDA device.
NVTX_DECLSPEC void NVTX_API nvtxNameCuEventA(CUevent event, const char *name)
Annotates a CUDA event.
NVTX_DECLSPEC void NVTX_API nvtxNameCuContextA(CUcontext context, const char *name)
Annotates a CUDA context.
nvtxResourceCUDAType_t
Resource types for CUDA.
NVTX_DECLSPEC void NVTX_API nvtxNameCuStreamA(CUstream stream, const char *name)
Annotates a CUDA stream.