(IMPORTANT: AFAR V ) Hide PC sampling if HSA does not support it. (#881)

* Hide PC sampling if HSA does not support it.

* missing hsa.hpp include

[ROCm/rocprofiler-sdk commit: 7201aa321e]
This commit is contained in:
Vladimir Indic
2024-05-29 03:02:14 +02:00
committed by GitHub
parent f0e8d11ed0
commit 176d812103
13 changed files with 118 additions and 71 deletions
@@ -92,6 +92,8 @@ rocprofiler_configure_pc_sampling_service(rocprofiler_context_id_t conte
(void) interval;
(void) buffer_id;
ROCP_ERROR << "PC sampling unavailable\n";
// ROCr runtime is missing PC sampling.
return ROCPROFILER_STATUS_ERROR_NOT_AVAILABLE;
#endif
@@ -118,6 +120,8 @@ rocprofiler_query_pc_sampling_agent_configurations(
(void) cb;
(void) user_data;
ROCP_ERROR << "PC sampling unavailable\n";
// ROCr runtime is missing PC sampling.
return ROCPROFILER_STATUS_ERROR_NOT_AVAILABLE;
#endif