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

Enable builds without CUDA/GPU support #19

Merged
merged 8 commits into from
Sep 5, 2024
Merged

Enable builds without CUDA/GPU support #19

merged 8 commits into from
Sep 5, 2024

Conversation

romerojosh
Copy link
Collaborator

For local experimentation, users may desire to try out TorchFort on a system without CUDA or a GPU available. This PR enables building TorchFort for CPU only (via a new CMake build option TORCHFORT_ENABLE_GPU, which can be set to zero to disable GPU support). Refer to Dockerfile_gnu_cpuonly to see an example of building on an Ubuntu system for CPU only.

This PR also includes bumping PyTorch to a more recent version (2.4.0) in the Dockerfiles, as well as a bit of housekeeping work on those files.

@azrael417
Copy link
Collaborator

LGTM, thank you for working on this.

@azrael417 azrael417 merged commit 606920d into master Sep 5, 2024
@romerojosh romerojosh deleted the gpu_optional branch September 30, 2024 16:08
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