Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Default Cython module RUNPATH to $ORIGIN and return the list of created targets #189

Merged
merged 6 commits into from
May 13, 2022

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented May 11, 2022

This PR sets the default RPATH for Cython-generated Python extension modules to $ORIGIN so that they will default to finding libraries within the same directory. If rapids-cmake users want to enforce a different directory layout in their library, they are responsible for overriding the RPATHs themselves. To facilitate this as well as other potential downstream modifications, rapids_cython_create_modules now also returns the set of created targets in the RAPIDS_CYTHON_CREATED_TARGETS variable.

@vyasr vyasr force-pushed the fix/cython_rpath_origin branch from f67d648 to 40fabfe Compare May 12, 2022 22:01
@vyasr vyasr force-pushed the fix/cython_rpath_origin branch from e45413b to 38779ec Compare May 12, 2022 23:04
@vyasr vyasr changed the title Fix/cython rpath origin Default Cython module RUNPATH to $ORIGIN and return the list of created targets May 13, 2022
@vyasr vyasr marked this pull request as ready for review May 13, 2022 00:18
@vyasr vyasr requested a review from a team as a code owner May 13, 2022 00:18
@vyasr
Copy link
Contributor Author

vyasr commented May 13, 2022

@robertmaynard I ended up choosing an approach that balances the simplicity of setting a default RPATH with giving users the flexibility to easily override it if they want.

Copy link
Contributor

@robertmaynard robertmaynard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved presuming we drop the RAPIDS.cmake changes.

@vyasr
Copy link
Contributor Author

vyasr commented May 13, 2022

@robertmaynard done. I've requested write access to this repo, but until I get it you will also need to update the labels before we can merge.

@robertmaynard robertmaynard added feature request New feature or request non-breaking Introduces a non-breaking change 3 - Ready for Review Ready for review by team labels May 13, 2022
@robertmaynard
Copy link
Contributor

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 7f231c7 into rapidsai:branch-22.06 May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team feature request New feature or request non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants