PC Sampling: API to list supported configurations

Add new PC Sampling API to list the supported PC Sampling methods and
options on a specific agent. If there is already a PC Sampling session
active on this agent, the list of methods returned will be reduced to
methods that can be run simultaneously with the current active session.

Change-Id: I42ac2b8f30d5c368faf8ed4cf37ca4134db22985


[ROCm/ROCR-Runtime commit: 295acf6b27]
This commit is contained in:
David Yat Sin committed 2024-04-11 12:52:30 -04:00
1 parent 8165c03e7b
commit 0a4415f202
7 files changed
+102

No files matched your search

@@ -94,6 +94,13 @@ void PcsRuntime::DestroySingleton() {
}
void ReleasePcSamplingRsrcs() { PcsRuntime::DestroySingleton(); }
hsa_status_t PcsRuntime::PcSamplingIterateConfig(
core::Agent* agent, hsa_ven_amd_pcs_iterate_configuration_callback_t configuration_callback,
void* callback_data) {
AMD::GpuAgentInt* gpu_agent = static_cast<AMD::GpuAgentInt*>(agent);
return gpu_agent->PcSamplingIterateConfig(configuration_callback, callback_data);
}
} // namespace pcs
} // namespace rocr