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

fix bug when CUDA_HOME is None #1610

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix bug when CUDA_HOME is None #1610

wants to merge 1 commit into from

Conversation

xiawu
Copy link

@xiawu xiawu commented Mar 13, 2023

when install apex on cpu platform(no support CUDA), the installation throw the following error:

Running command python setup.py egg_info
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/home/x/x/apex/setup.py", line 131, in
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
File "/home/x/x/apex/setup.py", line 17, in get_cuda_bare_metal_version
raw_output = subprocess.check_output([cuda_dir + "/bin/nvcc", "-V"], universal_newlines=True)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

This PR will fix it.

@crcrpar
Copy link
Collaborator

crcrpar commented Apr 21, 2023

@xiawu out of curiosity, which features would you use after CPU-only installation?

@xiawu
Copy link
Author

xiawu commented May 2, 2023

@xiawu out of curiosity, which features would you use after CPU-only installation?

running some projects that is dependent on apex, such as stable-diffusion. Because my GPU is old and has not enough memory.

@OneQinG12
Copy link

Error reporting:
torch.version = 1.5.0+cu101
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: no commands supplied

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.

3 participants