Skip to content

Commit

Permalink
core/hmem: Fix missing rocr dlopen function assignments
Browse files Browse the repository at this point in the history
Fix missing rocr dlopen function assignments.

Resolves issue #10797

Signed-off-by: Michael Lough <michael.lough@hpe.com>
Signed-off-by: Steve Welch <welch@hpe.com>
  • Loading branch information
swelch committed Feb 21, 2025
1 parent f1158e4 commit 94cc0e9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/hmem_rocr.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,30 @@ static int rocr_hmem_dl_init(void)
goto err;
}

hsa_ops.hsa_signal_store_screlease = dlsym(hsa_handle,
"hsa_signal_store_screlease");
if (!hsa_ops.hsa_signal_store_screlease) {
FI_WARN(&core_prov, FI_LOG_CORE,
"Failed to find hsa_signal_store_screlease\n");
goto err;
}

hsa_ops.hsa_signal_load_scacquire = dlsym(hsa_handle,
"hsa_signal_load_scacquire");
if (!hsa_ops.hsa_signal_load_scacquire) {
FI_WARN(&core_prov, FI_LOG_CORE,
"Failed to find hsa_signal_load_scacquire\n");
goto err;
}

hsa_ops.hsa_amd_agents_allow_access = dlsym(hsa_handle,
"hsa_amd_agents_allow_access");
if (!hsa_ops.hsa_amd_agents_allow_access) {
FI_WARN(&core_prov, FI_LOG_CORE,
"Failed to find hsa_amd_agents_allow_access\n");
goto err;
}

hsa_ops.hsa_signal_create = dlsym(hsa_handle, "hsa_signal_create");
if (!hsa_ops.hsa_signal_create) {
FI_WARN(&core_prov, FI_LOG_CORE,
Expand Down

0 comments on commit 94cc0e9

Please sign in to comment.