From fe9aedf2918fe5bbd9c0ef74b9d41365792eabe0 Mon Sep 17 00:00:00 2001 From: Treece Burgess Date: Mon, 23 Sep 2024 00:38:29 +0000 Subject: [PATCH] Update disabled reason if rocm init is successful. --- src/components/rocm/rocm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/rocm/rocm.c b/src/components/rocm/rocm.c index f83910a6f..74d2656e2 100644 --- a/src/components/rocm/rocm.c +++ b/src/components/rocm/rocm.c @@ -225,6 +225,7 @@ rocm_init_private(void) fn_exit: _rocm_vector.cmp_info.initialized = 1; _rocm_vector.cmp_info.disabled = papi_errno; + strcpy(_rocm_vector.cmp_info.disabled_reason, ""); SUBDBG("EXIT: %s\n", PAPI_strerror(papi_errno)); _papi_hwi_unlock(COMPONENT_LOCK); return papi_errno;