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
This commit is contained in:
David Yat Sin
2023-09-23 15:41:40 +00:00
parent 0bc244e10a
commit 295acf6b27
7 ha cambiato i file con 102 aggiunte e 0 eliminazioni
@@ -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