rocprofiler-sdk-roctx/roctx.h Source File#
ROCTx Developer API 0.6.0
ROCm Profiling API and tools
|
roctx.h
Go to the documentation of this file.
161 * Within a profiling tool, it is recommended that the tool cache all active contexts at the time of
163 * global pause of the profiler in the current process. If the application wishes to pause only the
169 * failure while executing the request or lack of support. If the profiling tool supports pausing
178 * Within a profiling tool, it is recommended that the tool re-activated the active contexts which
179 * were cached when the pause request was issued. By convention, the application should pass zero to
213 * Rocprofiler does not provide any explicit support for how profiling tools handle this request:
226 * @brief Indicate to a profiling tool that, where possible, you would like the given HIP device id
229 * Rocprofiler does not provide any explicit support for how profiling tools handle this request:
245 * Rocprofiler does not provide any explicit support for how profiling tools handle this request:
255roctxNameHipStream(const char* name, const struct ihipStream_t* stream) ROCTX_API ROCTX_NONNULL(1);
int roctxProfilerResume(roctx_thread_id_t tid) ROCTX_API
Request any currently running profiling tool that is should resume collecting data.
int roctxProfilerPause(roctx_thread_id_t tid) ROCTX_API
Request any currently running profiling tool that is should stop collecting data.
int roctxNameHsaAgent(const char *name, const struct hsa_agent_s *) ROCTX_API ROCTX_NONNULL(1
Indicate to a profiling tool that, where possible, you would like the given HSA agent to be labeled b...
int roctxNameHipStream(const char *name, const struct ihipStream_t *stream) ROCTX_API ROCTX_NONNULL(1)
Indicate to a profiling tool that, where possible, you would like the given HIP stream to be labeled ...
int roctxNameOsThread(const char *) ROCTX_API ROCTX_NONNULL(1)
Indicate to a profiling tool that, where possible, you would like the current CPU OS thread to be lab...
int int roctxNameHipDevice(const char *name, int device_id) ROCTX_API ROCTX_NONNULL(1)
Indicate to a profiling tool that, where possible, you would like the given HIP device id to be label...
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 g...
void roctxMarkA(const char *message) ROCTX_API ROCTX_NONNULL(1)
int roctxRangePushA(const char *message) ROCTX_API ROCTX_NONNULL(1)
void roctxRangeStop(roctx_range_id_t id) ROCTX_API
roctx_range_id_t roctxRangeStartA(const char *message) ROCTX_API ROCTX_NONNULL(1)
Starts a process range.
int roctxRangePop() ROCTX_API
Generated by