From e3918c98babc0bda0359dfbcb65c32d3c51712b8 Mon Sep 17 00:00:00 2001 From: Sriraksha Nagaraj Date: Wed, 18 Mar 2026 16:10:08 -0500 Subject: [PATCH 1/2] Change the enum string to profile --- .../source/include/rocprofiler-sdk/cxx/enum_string.hpp | 2 +- projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h | 3 ++- .../rocprofiler-sdk/source/lib/rocprofiler-sdk/rocprofiler.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/cxx/enum_string.hpp b/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/cxx/enum_string.hpp index 3a3aa72f26a..3d052d72784 100644 --- a/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/cxx/enum_string.hpp +++ b/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/cxx/enum_string.hpp @@ -1588,7 +1588,7 @@ ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_AST_NOT_FOUND); ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_AQL_NO_EVENT_COORD); ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_INCOMPATIBLE_KERNEL); ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_OUT_OF_RESOURCES); -ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND); +ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND); ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_AGENT_DISPATCH_CONFLICT); ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_INTERNAL_NO_AGENT_CONTEXT); ROCPROFILER_ENUM_LABEL(ROCPROFILER_STATUS_ERROR_SAMPLE_RATE_EXCEEDED); diff --git a/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h b/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h index 57a60a05b6e..71ea39e121a 100644 --- a/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h +++ b/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h @@ -89,7 +89,7 @@ typedef enum rocprofiler_status_t // NOLINT(performance-enum-size) ///< service that report incompatibility ROCPROFILER_STATUS_ERROR_OUT_OF_RESOURCES, ///< The given resources are ///< insufficient to complete operation - ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND, ///< Could not find the counter profile + ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, ///< Could not find the counter profile ROCPROFILER_STATUS_ERROR_AGENT_DISPATCH_CONFLICT, ///< Cannot enable both agent and dispatch ///< counting in the same context. ROCPROFILER_STATUS_INTERNAL_NO_AGENT_CONTEXT, ///< No agent context found, may not be an error @@ -107,6 +107,7 @@ typedef enum rocprofiler_status_t // NOLINT(performance-enum-size) ///< incompatible. Late-start profiling ///< requires ROCm 7.0+. ROCPROFILER_STATUS_LAST, + ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND = ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, ///< ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND is deprecated } rocprofiler_status_t; /** diff --git a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/rocprofiler.cpp b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/rocprofiler.cpp index ad172169867..09ea90e7c70 100644 --- a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/rocprofiler.cpp +++ b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/rocprofiler.cpp @@ -93,7 +93,7 @@ ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_INCOMPATIBLE_KERNEL, "A service depends on a newer version of KFD (amdgpu kernel driver)") ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_OUT_OF_RESOURCES, "The given resources are insufficient to complete operation") -ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND, +ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, "Could not find counter profile") ROCPROFILER_STATUS_STRING(ROCPROFILER_STATUS_ERROR_AGENT_DISPATCH_CONFLICT, "Cannot have both an agent counter collection and a dispatch counter " From 7933160589279e9c61f4d6bb1fec69fadb66f7cb Mon Sep 17 00:00:00 2001 From: Sriraksha Nagaraj Date: Thu, 19 Mar 2026 15:12:50 -0500 Subject: [PATCH 2/2] Fix formatting --- .../rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h b/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h index 71ea39e121a..a04957a63e0 100644 --- a/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h +++ b/projects/rocprofiler-sdk/source/include/rocprofiler-sdk/fwd.h @@ -89,7 +89,7 @@ typedef enum rocprofiler_status_t // NOLINT(performance-enum-size) ///< service that report incompatibility ROCPROFILER_STATUS_ERROR_OUT_OF_RESOURCES, ///< The given resources are ///< insufficient to complete operation - ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, ///< Could not find the counter profile + ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, ///< Could not find the counter profile ROCPROFILER_STATUS_ERROR_AGENT_DISPATCH_CONFLICT, ///< Cannot enable both agent and dispatch ///< counting in the same context. ROCPROFILER_STATUS_INTERNAL_NO_AGENT_CONTEXT, ///< No agent context found, may not be an error @@ -107,7 +107,9 @@ typedef enum rocprofiler_status_t // NOLINT(performance-enum-size) ///< incompatible. Late-start profiling ///< requires ROCm 7.0+. ROCPROFILER_STATUS_LAST, - ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND = ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, ///< ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND is deprecated + ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND = + ROCPROFILER_STATUS_ERROR_CONFIG_NOT_FOUND, ///< ROCPROFILER_STATUS_ERROR_PROFILE_NOT_FOUND + ///< is deprecated } rocprofiler_status_t; /**