apex not supporting CUDA 11.0? [Help me]
See original GitHub issueMy nvcc version is cuda 11.0, but I found the pytorch latest version from this website is 10.2 As a result I can’t properly install apex.
ImportError: cannot import name ‘amp’
Software Versions pre-installed:
Nvidia Driver: 450.51v
CUDA: 11v
cuDNN: 8.0v
Python: 3.8
Docker: 19.03.12v
Nvidia-docker: 2.0v
NGC(Nvidia GPU Cloud) CLI: 1.15.0v
i followed this commands:
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
when normally import apex, it is working.
python -c “import apex”
but in the main program, not working.
Traceback (most recent call last):
File "train.py", line 188, in <module>
train(num_gpus, args.rank, args.group_name, **train_config)
File "train.py", line 83, in train
from apex import amp
ImportError: cannot import name 'amp'
not importing apex module.
Please help me to solve this issue @definitelynotmcarilli @thorjohnsen @mcarilli @kexinyu @ptrblck 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:24 (8 by maintainers)
Top Results From Across the Web
CUDA 11.0 - Hacker News
The thing is, no library you use is going to be supporting the CUDA 11.0 RC, that's ridiculous. For example, Pytorch stable is...
Read more >installing NVIDIA Apex for Python 3.8.5 and compatible with ...
Installing CUDA 11.1 and then adding the following to ~/.bashrc and sourcing the ~/.bashrc and finally the symlink made it work:
Read more >[D] Does cuda latest version support all version of pytorch and ...
I want to to know if i install cuda 11.5, will it support lower version tensorflow or torch packages such as tensorflow 2.4...
Read more >CUDA Compatibility :: NVIDIA Data Center GPU Driver ...
CUDA 11 and Later Defaults to Minor Version Compatibility ... CUDA Toolkit releases were not supported on older drivers without forward ...
Read more >Cuda not compatible with PyTorch installation error while ...
Package cudatoolkit conflicts for: torchvision==0.9.0 -> cudatoolkit[version='10.2|10.2.|11.0|11.0.|11.1|11.1.|>=10.1 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is no option to do that, so I had to hack
setup.py
to disable the check:So I successfully built apex against system-wide cuda-11.1, while having pytorch w/ cuda-11.0 installed,
Yay!
And it works just fine!
Thank you, @ptrblck!
How can I tell
apex
to usecuda-11.0
? I have bothcuda-11.0
andcuda-11.1
installed and it fails to build as it doesn’t findcuda-11.0
:Also would it be possible to make apex builds on conda-forge for cuda11.0 and cuda11.1?
Thank you!