- Main Page
- Modules
- Data Structures
- Related Pages

nvtxNameCategoryA
nvtxNameCategoryW
nvtxNameClCommandQueueA
nvtxNameClCommandQueueW
nvtxNameClContextA
nvtxNameClContextW
nvtxNameClDeviceA
nvtxNameClDeviceW
nvtxNameClEventA
nvtxNameClEventW
nvtxNameClMemObjectA
nvtxNameClMemObjectW
nvtxNameClProgramA
nvtxNameClProgramW
nvtxNameClSamplerA
nvtxNameClSamplerW
nvtxNameCuContextA
nvtxNameCuContextW
nvtxNameCudaDeviceA
nvtxNameCudaDeviceW
nvtxNameCudaEventA
nvtxNameCudaEventW
nvtxNameCudaStreamA
nvtxNameCudaStreamW
nvtxNameCuDeviceA
nvtxNameCuDeviceW
nvtxNameCuEventA
nvtxNameCuEventW
nvtxNameCuStreamA
nvtxNameCuStreamW
nvtxNameOsThreadA
nvtxNameOsThreadW

NVTX_DECLSPEC void NVTX_API nvtxNameOsThreadW | ( | uint32_t | threadId,
|  | const wchar_t * | name
| ) |  |

Allows the user to name an active thread of the current process. If an invalid thread ID is provided or a thread ID from a different process is used the behavior of the tool is implementation dependent.

Parameters:

  threadId | - The ID of the thread to name.
  name | - The name of the thread.

Example:
  nvtxNameOsThread(GetCurrentThreadId(), "MAIN_THREAD");

Version:
  Supported with NVTX version 1 or higher.