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

Convert parallel module to nanobind #1259

Merged
merged 12 commits into from
Jun 24, 2024
Merged

Conversation

tommy-waltmann
Copy link
Collaborator

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds or improves functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation improvement (updates to user guides, docstrings, or developer docs)

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • I have updated the documentation (if relevant).
  • I have added tests that cover my changes (if relevant).
  • All new and existing tests passed.
  • I have updated the credits.
  • I have updated the Changelog.

@tommy-waltmann tommy-waltmann requested a review from a team as a code owner June 20, 2024 17:14
@tommy-waltmann tommy-waltmann requested review from SchoeniPhlippsn and removed request for a team June 20, 2024 17:14
@tommy-waltmann tommy-waltmann requested a review from joaander June 20, 2024 17:15
Copy link
Member

@joaander joaander left a 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.

Comment on lines +4 to +12
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()
Copy link
Member

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.

Copy link
Collaborator Author

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

@tommy-waltmann tommy-waltmann merged commit 8c96377 into pybind11 Jun 24, 2024
3 of 15 checks passed
@tommy-waltmann tommy-waltmann deleted the pybind11-parallel branch June 24, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants