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

Updating CUDA build to be opt in #43

Merged
merged 7 commits into from
Nov 27, 2023
Merged

Updating CUDA build to be opt in #43

merged 7 commits into from
Nov 27, 2023

Conversation

dfm
Copy link
Collaborator

@dfm dfm commented Nov 26, 2023

I was running into issues where even when a CUDA compiler was found, compilation would still fail because of missing include directories, and we didn't have a way to turn off CUDA compilation. This PR updates the build infrastructure to only compile the CUDA extensions when they are explicitly requested using -DJAX_FINUFFT_USE_CUDA=ON. It should be sufficient to set a CMAKE_ARGS environment variable when running pip install.

Still to do: Update the README.

@dfm dfm requested a review from lgarrison November 26, 2023 01:53
Copy link
Member

@lgarrison lgarrison left a comment

Choose a reason for hiding this comment

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

LGTM! The CUDA compilation is definitely trickier than the CPU compilation, so I think it makes sense to make it opt-in.

pyproject.toml Outdated Show resolved Hide resolved
@dfm dfm merged commit 096f027 into main Nov 27, 2023
5 checks passed
@dfm dfm deleted the opt-in-cuda branch April 22, 2024 19:40
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