(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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
00f31e593c
Коммит
7201aa321e
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user