-
Notifications
You must be signed in to change notification settings - Fork 50
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
Convert parallel module to nanobind #1259
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is a very clean solution.
if(APPLE) | ||
set_target_properties(_parallel PROPERTIES INSTALL_RPATH "@loader_path") | ||
else() | ||
set_target_properties(_parallel PROPERTIES INSTALL_RPATH "\$ORIGIN") | ||
endif() | ||
|
||
if(_using_conda OR DEFINED ENV{CIBUILDWHEEL}) | ||
set_target_properties(_parallel PROPERTIES INSTALL_RPATH_USE_LINK_PATH True) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will need to move this to a CMake macro or function to avoid code duplication as we add more modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can do this on the next PR for the parallel module
Description
This PR converts the parallel module to use nanobind and separates libfreud from the python extension modules.
Motivation and Context
This is the next module in our conversion of freud to use nanobind.
How Has This Been Tested?
The existing tests in
test_parallel.py
pass.Types of changes
Checklist: