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]
Tento commit je obsažen v:
David Yat Sin
2023-09-23 15:41:40 +00:00
rodič 8165c03e7b
revize 0a4415f202
7 změnil soubory, kde provedl 102 přidání a 0 odebrání
+7
Zobrazit soubor
@@ -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