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

Resolving torch cuda availability for cpu-only installation #275

Merged
merged 2 commits into from Apr 10, 2023

Conversation

zrqiao
Copy link
Contributor

@zrqiao zrqiao commented Feb 15, 2023

Dear OpenFold developers,

We encountered a TypeError: expected string or bytes-like object error in setup.py, line 111 when running pip install on a cpu-only machine. The current setup.py resolves CPU/GPU environments based on CUDA_HOME, but for cpu installations of pytorch (v1.13.1) this variable is set to '/usr/local/cuda' by default. This caused pip install to proceed to compiling the cuda kernels.

Here is a hotfix that ensures installing the cpu version when no cuda build of pytorch is detected.

@gahdritz gahdritz merged commit c9ba50a into aqlaboratory:main Apr 10, 2023
@gahdritz
Copy link
Collaborator

Thanks!

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.

None yet

2 participants