Skip to content

Load libcufile.so with RTLD_NODELETE flag - #177

Merged
raydouglass merged 1 commit into
rapidsai:branch-21.12from
gigony:fix_loading_libcufile
Dec 3, 2021
Merged

raydouglass merged 1 commit into
rapidsai:branch-21.12from
gigony:fix_loading_libcufile

Conversation

@gigony

@gigony gigony commented Dec 3, 2021 •

Copy link
Copy Markdown
Contributor

This is a following up fix for #158.

GDS team suggested using RTLD_NODELETE when calling dlopen() so that the library is not unloaded.
They will fix the issue by adding -z nodelete in the link flags when building libcufile.so in the future releases.

dlopen("/usr/local/cuda/targets/x86_64-linux/lib/libcufile.so", RTLD_NOW | RTLD_LOCAL| RTLD_NODELETE);

With this fix, cuCIM will work with GDS regardless of the versions (v1.1[failing] or not).

@gigony gigony added the bug Something isn't working label Dec 3, 2021
@gigony gigony added this to the v21.12.00 milestone Dec 3, 2021
@gigony
gigony requested review from jakirkham and quasiben December 3, 2021 02:02
@gigony
gigony requested a review from a team as a code owner December 3, 2021 02:02
@gigony gigony self-assigned this Dec 3, 2021
@gigony gigony added the non-breaking Introduces a non-breaking change label Dec 3, 2021
@gigony
gigony changed the base branch from branch-22.02 to branch-21.12 December 3, 2021 02:06
@gigony

gigony commented Dec 3, 2021

Copy link
Copy Markdown
Contributor Author

Will rebase once #175 is merged.

@jakirkham

Copy link
Copy Markdown
Member

Thanks Gigon! 😄

@jakirkham

Copy link
Copy Markdown
Member

cc @madsbk (for awareness)

@quasiben

quasiben commented Dec 3, 2021

Copy link
Copy Markdown
Member

rerun tests

@raydouglass
raydouglass merged commit 1634f9d into rapidsai:branch-21.12 Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants