Python Forum
Why Cuda from numba package is unavailable?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why Cuda from numba package is unavailable?
#1
Python 3.8.5, numpy 1.19.2, numba 0.51.2, Kubuntu 20.04, Nvidia-driver 390.138

I have video- card Nvidia GTX 560 Ti and I can't use one in calculations:
from numba import cuda
is_available = cuda.is_available()
print(str(is_available))
Output:
False

   
detect = cuda.detect()
print(str(detect))
Output:
Found 1 CUDA devices id 0 b'GeForce GTX 560 Ti' [SUPPORTED] compute capability: 2.1 pci device id: 0 pci bus id: 1 Summary: 1/1 devices are supported True
My GPU is supported, because has capability 2.1: supported devices. And I successfully installed cuda- toolkit with:
$ conda install cudatoolkit

Why?
Reply
#2
It turned out, that it was necessary to run the python interpreter, which was installed together with the anaconda-package (in the home directory). In this interpreter, cuda is supported.
Reply
#3
I install cuda- toolkit, and error disappear.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyTorch] no CUDA-capable device is detected constantin01 0 3,281 Apr-17-2020, 05:50 AM
Last Post: constantin01
  cuda gmp manish1m97 2 2,847 Jul-31-2019, 04:13 AM
Last Post: scidam
  Problem pycharm +anaconda (numba) JAson 4 9,552 Apr-13-2017, 08:02 AM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020