Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

core/util: Fix missing rocr dlopen function assignments #10812

Merged
merged 1 commit into from
Feb 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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