Skip to content

Commit

Permalink
hmem/ze: Change the library name passed to dlopen
Browse files Browse the repository at this point in the history
libze_loader.so requires level-zero-devel package. Use libze_loader.so.1
instead.

Signed-off-by: Jianxin Xiong <[email protected]>
  • Loading branch information
j-xiong committed Jan 13, 2024
1 parent dccd54c commit 39e35c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fabtests/common/hmem_ze.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void *libze_handle;
struct libze_ops libze_ops;
int init_libze_ops(void)
{
libze_handle = dlopen("libze_loader.so", RTLD_NOW);
libze_handle = dlopen("libze_loader.so.1", RTLD_NOW);
if (!libze_handle) {
FT_ERR("Failed to dlopen libze_loader.so\n");
goto err_out;
Expand Down
2 changes: 1 addition & 1 deletion src/hmem_ze.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ bool ze_hmem_p2p_enabled(void)
static int ze_hmem_dl_init(void)
{
#if ENABLE_ZE_DLOPEN
libze_handle = dlopen("libze_loader.so", RTLD_NOW);
libze_handle = dlopen("libze_loader.so.1", RTLD_NOW);
if (!libze_handle) {
FI_WARN(&core_prov, FI_LOG_CORE,
"Failed to dlopen libze_loader.so\n");
Expand Down

0 comments on commit 39e35c0

Please sign in to comment.