Skip to content

Commit

Permalink
rocm: add reason for disabled component
Browse files Browse the repository at this point in the history
Previously, in the absence of a ROCm device, the rocm component did not
set the string containing the reason that the component was disabled.

These changes have been tested using ROCm 6.2
  • Loading branch information
dbarry9 committed Aug 21, 2024
1 parent acc8a9e commit ce6f93f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/rocm/roc_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ rocc_init(void)

hsa_status_t status = hsa_init_p();
if (status != HSA_STATUS_SUCCESS) {
snprintf(error_string, PAPI_MAX_STR_LEN, "Call to hsa_init() failed.");
papi_errno = PAPI_EMISC;
goto fn_fail;
}
Expand Down

0 comments on commit ce6f93f

Please sign in to comment.