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:
@@ -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
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user