question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Numba 0.50.1 downloaded from conda fails to compile on GPU (but works when using pip)

See original GitHub issue

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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
stuartarchibaldcommented, Jul 7, 2020

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.

1reaction
RemiLehecommented, Jul 13, 2020

Great! I confirm that this fixed the issue. Thanks a lot!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found