Running setup.py install for apex ... error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9k
- Forks
- 1.5k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 3
Description
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-lisrmeqq/setup.py", line 103, in
check_cuda_torch_binary_vs_bare_metal(torch.utils.cpp_extension.CUDA_HOME)
File "/tmp/pip-req-build-lisrmeqq/setup.py", line 80, in check_cuda_torch_binary_vs_bare_metal
"https://github.com/NVIDIA/apex/pull/323#discussion_r287021798. "
RuntimeError: Cuda extensions are being compiled with a version of Cuda that does not match the version used to compile Pytorch binaries. Pytorch binaries were compiled with Cuda 10.1.
In some cases, a minor-version mismatch will not cause later errors: https://github.com/NVIDIA/apex/pull/323#discussion_r287021798. You can try commenting out this check (at your own risk).
Running setup.py install for apex ... error
Cleaning up...
Removing source in /tmp/pip-req-build-lisrmeqq
Removed build tracker: '/tmp/pip-req-tracker-jffj36az'
ERROR: Command errored out with exit status 1: /home/getalp/keloe/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-lisrmeqq/setup.py'"'"'; file='"'"'/tmp/pip-req-build-lisrmeqq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --pyprof --cpp_ext --cuda_ext install --record /tmp/pip-record-g7zy9ukr/install-record.txt --single-version-externally-managed --compile --install-headers /home/getalp/keloe/anaconda3/include/python3.7m/apex Check the logs for full command output.
Exception information:
I am getting this error in my stacktrace when trying for (many times to install apex) Does this mean that I have to change CUDA version ? I f yes how ?
Should I use pip to reinstall cuda ??
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup.py and the check_cuda_torch_binary_vs_bare_metal call shown in the traceback; inspect how the local CUDA version and PyTorch binary version are checked. Reproduce the listed installation command in the same Python 3.7 environment, and treat a successful Apex installation without the version-mismatch error as done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100