From 47a66adf1feb07a5f8a4bdfbe6fd9079f1764d68 Mon Sep 17 00:00:00 2001 From: "Indic, Vladimir" Date: Fri, 20 Dec 2024 17:04:16 +0100 Subject: [PATCH] ROCProfV3: fatal message if PC sampling unsupported, but requested (#60) If a user requests PC sampling on a system that does not support this feature, report a fatal error message and stop executing the program. [ROCm/rocprofiler-sdk commit: 0ce75c10430bca6c6a74981547805dfe89bf7e7b] --- .../rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/tool.cpp b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/tool.cpp index b2299111a6..0e722cf69c 100644 --- a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/tool.cpp +++ b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/tool.cpp @@ -1334,7 +1334,7 @@ tool_init(rocprofiler_client_finalize_t fini_func, void* tool_data) } } if(!config_match_found) - ROCP_ERROR << "Given PC sampling configuration is not supported on any of the agents"; + ROCP_FATAL << "Given PC sampling configuration is not supported on any of the agents"; } for(auto itr : get_buffers().as_array())