24#include "driver_types.h"
26#ifndef NVTOOLSEXT_CUDART_V3
27#define NVTOOLSEXT_CUDART_V3
50#define NVTX_RESOURCE_CLASS_CUDART 5
58 NVTX_RESOURCE_TYPE_CUDART_DEVICE = NVTX_RESOURCE_MAKE_TYPE(CUDART, 0),
59 NVTX_RESOURCE_TYPE_CUDART_STREAM = NVTX_RESOURCE_MAKE_TYPE(CUDART, 1),
60 NVTX_RESOURCE_TYPE_CUDART_EVENT = NVTX_RESOURCE_MAKE_TYPE(CUDART, 2),
75NVTX_DECLSPEC
void NVTX_API nvtxNameCudaDeviceW(
int device,
const wchar_t* name);
89NVTX_DECLSPEC
void NVTX_API nvtxNameCudaStreamW(cudaStream_t stream,
const wchar_t* name);
103NVTX_DECLSPEC
void NVTX_API nvtxNameCudaEventW(cudaEvent_t event,
const wchar_t* name);
110 #define nvtxNameCudaDevice nvtxNameCudaDeviceW
111 #define nvtxNameCudaStream nvtxNameCudaStreamW
112 #define nvtxNameCudaEvent nvtxNameCudaEventW
114 #define nvtxNameCudaDevice nvtxNameCudaDeviceA
115 #define nvtxNameCudaStream nvtxNameCudaStreamA
116 #define nvtxNameCudaEvent nvtxNameCudaEventA
124#define NVTX_IMPL_GUARD_CUDART
125#include "nvtxDetail/nvtxImplCudaRt_v3.h"
126#undef NVTX_IMPL_GUARD_CUDART
nvtxResourceCUDARTType_t
Resource types for CUDART.
NVTX_DECLSPEC void NVTX_API nvtxNameCudaDeviceA(int device, const char *name)
Annotates a CUDA device.
NVTX_DECLSPEC void NVTX_API nvtxNameCudaStreamA(cudaStream_t stream, const char *name)
Annotates a CUDA stream.
NVTX_DECLSPEC void NVTX_API nvtxNameCudaEventA(cudaEvent_t event, const char *name)
Annotates a CUDA event.