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