25#ifndef NVTOOLSEXT_OPENCL_V3
26#define NVTOOLSEXT_OPENCL_V3
49#define NVTX_RESOURCE_CLASS_OPENCL 6
57 NVTX_RESOURCE_TYPE_OPENCL_DEVICE = NVTX_RESOURCE_MAKE_TYPE(OPENCL, 1),
58 NVTX_RESOURCE_TYPE_OPENCL_CONTEXT = NVTX_RESOURCE_MAKE_TYPE(OPENCL, 2),
59 NVTX_RESOURCE_TYPE_OPENCL_COMMANDQUEUE = NVTX_RESOURCE_MAKE_TYPE(OPENCL, 3),
60 NVTX_RESOURCE_TYPE_OPENCL_MEMOBJECT = NVTX_RESOURCE_MAKE_TYPE(OPENCL, 4),
61 NVTX_RESOURCE_TYPE_OPENCL_SAMPLER = NVTX_RESOURCE_MAKE_TYPE(OPENCL, 5),
62 NVTX_RESOURCE_TYPE_OPENCL_PROGRAM = NVTX_RESOURCE_MAKE_TYPE(OPENCL, 6),
63 NVTX_RESOURCE_TYPE_OPENCL_EVENT = NVTX_RESOURCE_MAKE_TYPE(OPENCL, 7),
78NVTX_DECLSPEC
void NVTX_API nvtxNameClDeviceW(cl_device_id device,
const wchar_t* name);
92NVTX_DECLSPEC
void NVTX_API nvtxNameClContextW(cl_context context,
const wchar_t* name);
106NVTX_DECLSPEC
void NVTX_API nvtxNameClCommandQueueW(cl_command_queue command_queue,
const wchar_t* name);
120NVTX_DECLSPEC
void NVTX_API nvtxNameClMemObjectW(cl_mem memobj,
const wchar_t* name);
134NVTX_DECLSPEC
void NVTX_API nvtxNameClSamplerW(cl_sampler sampler,
const wchar_t* name);
155NVTX_DECLSPEC
void NVTX_API nvtxNameClProgramW(cl_program program,
const wchar_t* name);
169NVTX_DECLSPEC
void NVTX_API nvtxNameClEventW(cl_event evnt,
const wchar_t* name);
176 #define nvtxNameClDevice nvtxNameClDeviceW
177 #define nvtxNameClContext nvtxNameClContextW
178 #define nvtxNameClCommandQueue nvtxNameClCommandQueueW
179 #define nvtxNameClMemObject nvtxNameClMemObjectW
180 #define nvtxNameClSampler nvtxNameClSamplerW
181 #define nvtxNameClProgram nvtxNameClProgramW
182 #define nvtxNameClEvent nvtxNameClEventW
184 #define nvtxNameClDevice nvtxNameClDeviceA
185 #define nvtxNameClContext nvtxNameClContextA
186 #define nvtxNameClCommandQueue nvtxNameClCommandQueueA
187 #define nvtxNameClMemObject nvtxNameClMemObjectA
188 #define nvtxNameClSampler nvtxNameClSamplerA
189 #define nvtxNameClProgram nvtxNameClProgramA
190 #define nvtxNameClEvent nvtxNameClEventA
198#define NVTX_IMPL_GUARD_OPENCL
199#include "nvtxDetail/nvtxImplOpenCL_v3.h"
200#undef NVTX_IMPL_GUARD_OPENCL
NVTX_DECLSPEC void NVTX_API nvtxNameClEventA(cl_event evnt, const char *name)
Annotates an OpenCL event.
NVTX_DECLSPEC void NVTX_API nvtxNameClSamplerA(cl_sampler sampler, const char *name)
Annotates an OpenCL sampler.
NVTX_DECLSPEC void NVTX_API nvtxNameClDeviceA(cl_device_id device, const char *name)
Annotates an OpenCL device.
NVTX_DECLSPEC void NVTX_API nvtxNameClMemObjectA(cl_mem memobj, const char *name)
Annotates an OpenCL memory object.
NVTX_DECLSPEC void NVTX_API nvtxNameClProgramA(cl_program program, const char *name)
Annotates an OpenCL program.
nvtxResourceOpenCLType_t
Resource types for OpenCL.
NVTX_DECLSPEC void NVTX_API nvtxNameClCommandQueueA(cl_command_queue command_queue, const char *name)
Annotates an OpenCL command queue.
NVTX_DECLSPEC void NVTX_API nvtxNameClContextA(cl_context context, const char *name)
Annotates an OpenCL context.