ROCTx Utility functions

ROCTx Utility functions#

ROCTx Developer API: ROCTx Utility functions
ROCTx Developer API 0.6.0
ROCm Profiling API and tools
ROCTx Utility functions

Functions

int roctxGetThreadId (roctx_thread_id_t *tid) ROCTX_API ROCTX_NONNULL(1)
 Retrieve a id value for the current thread which will be identical to the id value a profiling tool gets via rocprofiler_get_thread_id(rocprofiler_thread_id_t*)
 

Detailed Description

Function Documentation

◆ roctxGetThreadId()

int roctxGetThreadId ( roctx_thread_id_t tid)

Retrieve a id value for the current thread which will be identical to the id value a profiling tool gets via rocprofiler_get_thread_id(rocprofiler_thread_id_t*)

Parameters
tid[out] Pointer to where the value should be placed
Returns
int A profiling tool may choose to set this value to a non-zero value to indicate a failure while executing the request or lack of support