Numba 0.50.1 downloaded from conda fails to compile on GPU (but works when using pip)
See original GitHub issue- I have tried using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
- I have included below a minimal working reproducer (if you are unsure how to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).
Bug report
When installing numba
from conda
and running the standard test on GPU, i.e.
conda install numba
python -m numba.runtests numba.cuda.tests
I get a compilation error:
numba.cuda.cudadrv.error.NvvmError: Failed to compile
<unnamed> (25, 17): parse expected binary operation in atomicrmw
NVVM_ERROR_COMPILATION
On the other hand, when using pip
:
pip install numba
python -m numba.runtests numba.cuda.tests
the tests are running without any issue.
When playing around (e.g. installing numba
always from pip
, but installing llvmlite
either from conda
or pip
), it seemed to me that the issue comes from the version of llvmlite
downloaded from conda
…
More details
In the case of conda
, the following packages were downloaded.
llvmlite pkgs/main/linux-64::llvmlite-0.33.0-py37hd408876_0
numba pkgs/main/linux-64::numba-0.50.1-py37h0573a6f_0
tbb pkgs/main/linux-64::tbb-2020.0-hfd86e86_0
On the other hand, in the case of pip
, the following packages were downloaded:
llvmlite-0.33.0-cp37-cp37m-manylinux1_x86_64.whl
numba-0.50.1-cp37-cp37m-manylinux2014_x86_64.whl
The tests are run on a GTX 1080 Ti with cudatoolkit 9.0
installed from conda
(Build h13b8566_0
).
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Installation — Numba 0.50.1 documentation
To use CUDA with Numba installed by pip , you need to install the CUDA SDK from NVIDIA. Please refer to Setting CUDA...
Read more >Installation - Numba documentation
To use CUDA with Numba installed by pip , you need to install the CUDA SDK from NVIDIA. Please refer to Setting CUDA...
Read more >python - I am trying to install numba by the command pip ...
If that fails the easiest way to install numba is by using anaconda. Install anaconda if not installed. Then do conda install numba...
Read more >Python crashes when trying to train a model. - Faceswap Forum
Error message is as followed: Python stopped working. ... Installing with pip "nvidia-ml-py 11.515,<300" not available in Conda.
Read more >Working with GPU packages - Anaconda Documentation
The information on this page applies only to NVIDIA GPUs. As of August 27th, 2018, experimental AMD GPU packages for Anaconda are in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
Thanks for the report, I can reproduce. From the error I think the Anaconda llvmdev builds aren’t carrying the patch that prevents instruction upgrade.
Great! I confirm that this fixed the issue. Thanks a lot!