public class nvToolsExt extends nvToolsExt
| Modifier and Type | Field and Description |
|---|---|
static int |
NVTX_COLOR_ARGB
enum nvtxColorType_t
|
static int |
NVTX_COLOR_UNKNOWN
enum nvtxColorType_t
|
static int |
NVTX_EVENT_ATTRIB_STRUCT_SIZE |
static int |
NVTX_MESSAGE_TYPE_ASCII
enum nvtxMessageType_t
|
static int |
NVTX_MESSAGE_TYPE_UNICODE
enum nvtxMessageType_t
|
static int |
NVTX_MESSAGE_UNKNOWN
enum nvtxMessageType_t
|
static int |
NVTX_NO_PUSH_POP_TRACKING |
static int |
NVTX_PAYLOAD_TYPE_DOUBLE
enum nvtxPayloadType_t
|
static int |
NVTX_PAYLOAD_TYPE_INT64
enum nvtxPayloadType_t
|
static int |
NVTX_PAYLOAD_TYPE_UNSIGNED_INT64
enum nvtxPayloadType_t
|
static int |
NVTX_PAYLOAD_UNKNOWN
enum nvtxPayloadType_t
|
static int |
NVTX_VERSION
Tools Extension API version
|
| Constructor and Description |
|---|
nvToolsExt() |
| Modifier and Type | Method and Description |
|---|---|
static int |
NVTX_EVENT_ATTRIB_STRUCT_SIZE()
Size of the nvtxEventAttributes_t structure.
|
static void |
nvtxMarkA(BytePointer message)
\brief Marks an instantaneous event in the application.
|
static void |
nvtxMarkA(String message) |
static void |
nvtxMarkEx(nvtxEventAttributes_t eventAttrib)
\brief Marks an instantaneous event in the application.
|
static void |
nvtxMarkW(CharPointer message) |
static void |
nvtxMarkW(IntPointer message) |
static void |
nvtxNameCategoryA(int category,
BytePointer name)
\{
\brief Annotate an NVTX category.
|
static void |
nvtxNameCategoryA(int category,
String name) |
static void |
nvtxNameCategoryW(int category,
CharPointer name) |
static void |
nvtxNameCategoryW(int category,
IntPointer name) |
static void |
nvtxNameCuContextA(CUctx_st context,
BytePointer name)
\brief Annotates a CUDA context.
|
static void |
nvtxNameCuContextA(CUctx_st context,
String name) |
static void |
nvtxNameCuContextW(CUctx_st context,
CharPointer name) |
static void |
nvtxNameCuContextW(CUctx_st context,
IntPointer name) |
static void |
nvtxNameCudaDeviceA(int device,
BytePointer name)
\brief Annotates a CUDA device.
|
static void |
nvtxNameCudaDeviceA(int device,
String name) |
static void |
nvtxNameCudaDeviceW(int device,
CharPointer name) |
static void |
nvtxNameCudaDeviceW(int device,
IntPointer name) |
static void |
nvtxNameCudaEventA(CUevent_st event,
BytePointer name)
\brief Annotates a CUDA event.
|
static void |
nvtxNameCudaEventA(CUevent_st event,
String name) |
static void |
nvtxNameCudaEventW(CUevent_st event,
CharPointer name) |
static void |
nvtxNameCudaEventW(CUevent_st event,
IntPointer name) |
static void |
nvtxNameCudaStreamA(CUstream_st stream,
BytePointer name)
\brief Annotates a CUDA stream.
|
static void |
nvtxNameCudaStreamA(CUstream_st stream,
String name) |
static void |
nvtxNameCudaStreamW(CUstream_st stream,
CharPointer name) |
static void |
nvtxNameCudaStreamW(CUstream_st stream,
IntPointer name) |
static void |
nvtxNameCuDeviceA(int device,
BytePointer name)
\brief Annotates a CUDA device.
|
static void |
nvtxNameCuDeviceA(int device,
String name) |
static void |
nvtxNameCuDeviceW(int device,
CharPointer name) |
static void |
nvtxNameCuDeviceW(int device,
IntPointer name) |
static void |
nvtxNameCuEventA(CUevent_st event,
BytePointer name)
\brief Annotates a CUDA event.
|
static void |
nvtxNameCuEventA(CUevent_st event,
String name) |
static void |
nvtxNameCuEventW(CUevent_st event,
CharPointer name) |
static void |
nvtxNameCuEventW(CUevent_st event,
IntPointer name) |
static void |
nvtxNameCuStreamA(CUstream_st stream,
BytePointer name)
\brief Annotates a CUDA stream.
|
static void |
nvtxNameCuStreamA(CUstream_st stream,
String name) |
static void |
nvtxNameCuStreamW(CUstream_st stream,
CharPointer name) |
static void |
nvtxNameCuStreamW(CUstream_st stream,
IntPointer name) |
static void |
nvtxNameOsThreadA(int threadId,
BytePointer name)
\{
\brief Annotate an OS thread.
|
static void |
nvtxNameOsThreadA(int threadId,
String name) |
static void |
nvtxNameOsThreadW(int threadId,
CharPointer name) |
static void |
nvtxNameOsThreadW(int threadId,
IntPointer name) |
static void |
nvtxRangeEnd(long id)
\brief Marks the end of a range.
|
static int |
nvtxRangePop()
\brief Marks the end of a nested range
|
static int |
nvtxRangePushA(BytePointer message)
\brief Marks the start of a nested range
|
static int |
nvtxRangePushA(String message) |
static int |
nvtxRangePushEx(nvtxEventAttributes_t eventAttrib)
\brief Marks the start of a nested range
|
static int |
nvtxRangePushW(CharPointer message) |
static int |
nvtxRangePushW(IntPointer message) |
static long |
nvtxRangeStartA(BytePointer message)
\brief Marks the start of a range.
|
static long |
nvtxRangeStartA(String message) |
static long |
nvtxRangeStartEx(nvtxEventAttributes_t eventAttrib)
\brief Marks the start of a range.
|
static long |
nvtxRangeStartW(CharPointer message) |
static long |
nvtxRangeStartW(IntPointer message) |
mappublic static final int NVTX_VERSION
public static final int NVTX_EVENT_ATTRIB_STRUCT_SIZE
public static final int NVTX_NO_PUSH_POP_TRACKING
public static final int NVTX_COLOR_UNKNOWN
public static final int NVTX_COLOR_ARGB
public static final int NVTX_PAYLOAD_UNKNOWN
public static final int NVTX_PAYLOAD_TYPE_UNSIGNED_INT64
public static final int NVTX_PAYLOAD_TYPE_INT64
public static final int NVTX_PAYLOAD_TYPE_DOUBLE
public static final int NVTX_MESSAGE_UNKNOWN
public static final int NVTX_MESSAGE_TYPE_ASCII
public static final int NVTX_MESSAGE_TYPE_UNICODE
@MemberGetter public static int NVTX_EVENT_ATTRIB_STRUCT_SIZE()
public static void nvtxMarkEx(@Const nvtxEventAttributes_t eventAttrib)
eventAttrib - - The event attribute structure defining the marker's
attribute types and attribute values.
\par Example:
// zero the structure
nvtxEventAttributes_t eventAttrib = {0};
// set the version and the size information
eventAttrib.version = NVTX_VERSION;
eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE;
// configure the attributes. 0 is the default for all attributes.
eventAttrib.colorType = NVTX_COLOR_ARGB;
eventAttrib.color = 0xFF880000;
eventAttrib.messageType = NVTX_MESSAGE_TYPE_ASCII;
eventAttrib.message.ascii = "Example nvtxMarkEx";
nvtxMarkEx(&eventAttrib);
public static void nvtxMarkA(@Cast(value="const char*") BytePointer message)
message - - The message associated to this marker event.
\par Example:
nvtxMarkA("Example nvtxMarkA");
nvtxMarkW(L"Example nvtxMarkW");
public static void nvtxMarkA(String message)
public static void nvtxMarkW(@Cast(value="const wchar_t*") CharPointer message)
public static void nvtxMarkW(@Cast(value="const wchar_t*") IntPointer message)
@Cast(value="nvtxRangeId_t") public static long nvtxRangeStartEx(@Const nvtxEventAttributes_t eventAttrib)
eventAttrib - - The event attribute structure defining the range's
attribute types and attribute values.
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.version = NVTX_VERSION;
eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE;
eventAttrib.category = 3;
eventAttrib.colorType = NVTX_COLOR_ARGB;
eventAttrib.color = 0xFF0088FF;
eventAttrib.messageType = NVTX_MESSAGE_TYPE_ASCII;
eventAttrib.message.ascii = "Example RangeStartEnd";
nvtxRangeId_t rangeId = nvtxRangeStartEx(&eventAttrib);
// ...
nvtxRangeEnd(rangeId);
::nvtxRangeEnd@Cast(value="nvtxRangeId_t") public static long nvtxRangeStartA(@Cast(value="const char*") BytePointer message)
message - - The event message associated to this range event.
nvtxRangeId_t r1 = nvtxRangeStartA("Range 1");
nvtxRangeId_t r2 = nvtxRangeStartW(L"Range 2");
nvtxRangeEnd(r1);
nvtxRangeEnd(r2);
::nvtxRangeEnd@Cast(value="nvtxRangeId_t") public static long nvtxRangeStartW(@Cast(value="const wchar_t*") CharPointer message)
@Cast(value="nvtxRangeId_t") public static long nvtxRangeStartW(@Cast(value="const wchar_t*") IntPointer message)
public static void nvtxRangeEnd(@Cast(value="nvtxRangeId_t") long id)
id - - The correlation ID returned from a nvtxRangeStart call.::nvtxRangeStartA
::nvtxRangeStartWpublic static int nvtxRangePushEx(@Const nvtxEventAttributes_t eventAttrib)
eventAttrib - - The event attribute structure defining the range's
attribute types and attribute values.
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.version = NVTX_VERSION;
eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE;
eventAttrib.colorType = NVTX_COLOR_ARGB;
eventAttrib.color = 0xFFFF0000;
eventAttrib.messageType = NVTX_MESSAGE_TYPE_ASCII;
eventAttrib.message.ascii = "Level 0";
nvtxRangePushEx(&eventAttrib);
// Re-use eventAttrib
eventAttrib.messageType = NVTX_MESSAGE_TYPE_UNICODE;
eventAttrib.message.unicode = L"Level 1";
nvtxRangePushEx(&eventAttrib);
nvtxRangePop();
nvtxRangePop();
::nvtxRangePoppublic static int nvtxRangePushA(@Cast(value="const char*") BytePointer message)
message - - The event message associated to this range event.
nvtxRangePushA("Level 0");
nvtxRangePushW(L"Level 1");
nvtxRangePop();
nvtxRangePop();
::nvtxRangePoppublic static int nvtxRangePushA(String message)
public static int nvtxRangePushW(@Cast(value="const wchar_t*") CharPointer message)
public static int nvtxRangePushW(@Cast(value="const wchar_t*") IntPointer message)
public static int nvtxRangePop()
::nvtxRangePushA
::nvtxRangePushWpublic static void nvtxNameCategoryA(@Cast(value="uint32_t") int category, @Cast(value="const char*") BytePointer name)
category - - The category ID to name.name - - The name of the category.
\remarks The category names are tracked per process.
\par Example:
nvtxNameCategory(1, "Memory Allocation");
nvtxNameCategory(2, "Memory Transfer");
nvtxNameCategory(3, "Memory Object Lifetime");
public static void nvtxNameCategoryA(@Cast(value="uint32_t") int category, String name)
public static void nvtxNameCategoryW(@Cast(value="uint32_t") int category, @Cast(value="const wchar_t*") CharPointer name)
public static void nvtxNameCategoryW(@Cast(value="uint32_t") int category, @Cast(value="const wchar_t*") IntPointer name)
public static void nvtxNameOsThreadA(@Cast(value="uint32_t") int threadId, @Cast(value="const char*") BytePointer name)
threadId - - The ID of the thread to name.name - - The name of the thread.
\par Example:
nvtxNameOsThread(GetCurrentThreadId(), "MAIN_THREAD");
public static void nvtxNameOsThreadA(@Cast(value="uint32_t") int threadId, String name)
public static void nvtxNameOsThreadW(@Cast(value="uint32_t") int threadId, @Cast(value="const wchar_t*") CharPointer name)
public static void nvtxNameOsThreadW(@Cast(value="uint32_t") int threadId, @Cast(value="const wchar_t*") IntPointer name)
public static void nvtxNameCuDeviceA(@Cast(value="CUdevice") int device, @Cast(value="const char*") BytePointer name)
device - - The handle of the CUDA device to name.name - - The name of the CUDA device.public static void nvtxNameCuDeviceA(@Cast(value="CUdevice") int device, String name)
public static void nvtxNameCuDeviceW(@Cast(value="CUdevice") int device, @Cast(value="const wchar_t*") CharPointer name)
public static void nvtxNameCuDeviceW(@Cast(value="CUdevice") int device, @Cast(value="const wchar_t*") IntPointer name)
public static void nvtxNameCuContextA(CUctx_st context, @Cast(value="const char*") BytePointer name)
context - - The handle of the CUDA context to name.name - - The name of the CUDA context.
\par Example:
CUresult status = cuCtxCreate( &cuContext, 0, cuDevice );
if ( CUDA_SUCCESS != status )
goto Error;
nvtxNameCuContext(cuContext, "CTX_NAME");
public static void nvtxNameCuContextW(CUctx_st context, @Cast(value="const wchar_t*") CharPointer name)
public static void nvtxNameCuContextW(CUctx_st context, @Cast(value="const wchar_t*") IntPointer name)
public static void nvtxNameCuStreamA(CUstream_st stream, @Cast(value="const char*") BytePointer name)
stream - - The handle of the CUDA stream to name.name - - The name of the CUDA stream.public static void nvtxNameCuStreamA(CUstream_st stream, String name)
public static void nvtxNameCuStreamW(CUstream_st stream, @Cast(value="const wchar_t*") CharPointer name)
public static void nvtxNameCuStreamW(CUstream_st stream, @Cast(value="const wchar_t*") IntPointer name)
public static void nvtxNameCuEventA(CUevent_st event, @Cast(value="const char*") BytePointer name)
event - - The handle of the CUDA event to name.name - - The name of the CUDA event.public static void nvtxNameCuEventA(CUevent_st event, String name)
public static void nvtxNameCuEventW(CUevent_st event, @Cast(value="const wchar_t*") CharPointer name)
public static void nvtxNameCuEventW(CUevent_st event, @Cast(value="const wchar_t*") IntPointer name)
public static void nvtxNameCudaDeviceA(int device,
@Cast(value="const char*")
BytePointer name)
device - - The id of the CUDA device to name.name - - The name of the CUDA device.public static void nvtxNameCudaDeviceA(int device,
String name)
public static void nvtxNameCudaDeviceW(int device,
@Cast(value="const wchar_t*")
CharPointer name)
public static void nvtxNameCudaDeviceW(int device,
@Cast(value="const wchar_t*")
IntPointer name)
public static void nvtxNameCudaStreamA(CUstream_st stream, @Cast(value="const char*") BytePointer name)
stream - - The handle of the CUDA stream to name.name - - The name of the CUDA stream.public static void nvtxNameCudaStreamA(CUstream_st stream, String name)
public static void nvtxNameCudaStreamW(CUstream_st stream, @Cast(value="const wchar_t*") CharPointer name)
public static void nvtxNameCudaStreamW(CUstream_st stream, @Cast(value="const wchar_t*") IntPointer name)
public static void nvtxNameCudaEventA(CUevent_st event, @Cast(value="const char*") BytePointer name)
event - - The handle of the CUDA event to name.name - - The name of the CUDA event.public static void nvtxNameCudaEventA(CUevent_st event, String name)
public static void nvtxNameCudaEventW(CUevent_st event, @Cast(value="const wchar_t*") CharPointer name)
public static void nvtxNameCudaEventW(CUevent_st event, @Cast(value="const wchar_t*") IntPointer name)
Copyright © 2024. All rights reserved.