scikit-cuda icon indicating copy to clipboard operation
scikit-cuda copied to clipboard

Error while importing skcuda.linalg

Open hyysky opened this issue 3 years ago • 4 comments

Problem

while importing skcuda.linalg, OSError: cublas library not found.

I tried with other released pycuda, still not working.

Environment

List the following info:

  • OS platform (including distro if you are on Linux):windows10
  • Python version ==3.8.8
  • CUDA version==11.2.142 + downloaded and installed through nvidia webset
  • PyCUDA version == 2021.1+cuda114
  • scikit-cuda version (including GitHub revision if you have installed it from there) ==0.5.3

hyysky avatar Aug 10 '21 06:08 hyysky

I checked cublas.py in skcuda, it seems that skcuda doesn't support cuda11.x yet. So I install the cuda10.2 and problem solved.

But I got another one:"the cusolver library only available in CUDA 7.0 and later", checked the cudart._cudart_version which is 6050. Does this parameter means the cuda version or something else? How can I fix it?

hyysky avatar Aug 11 '21 07:08 hyysky

The same problem.

decoli avatar Aug 26 '21 06:08 decoli

Hi, I'm having a similar issue when importing skcuda.linalg:

import skcuda.linalg as linalg .. OSError: CUDA runtime library not found

OS platform: Windows10 Python version == 3.10 CUDA version ==11.5 + downloaded and installed through nvidia webset PyCUDA version == pycuda-2021.1 scikit-cuda verson == 0.5.3

I need cuda 11.x, so retrofitting to 10.2 is not an option. Any Idea when this will be supported in scikit-cuda?

jrogado avatar Dec 13 '21 01:12 jrogado

Hi again,

I found a possible reason for the "OSError: cusolver library not found", that was causing the "import skcuda.linalg as linalg" to fail.

In file cusolver.py line 26 should be:

_win32_version_list = [11, 10, 10, 100, 92, 91, 90, 80, 75, 70]

and NOT

_win32_version_list = [110, 10, 10, 100, 92, 91, 90, 80, 75, 70]

Since the cusolver64 DLL for cuda 11 is named cusolver64_11.dll and NOT cusolver64_110.dll

I made this change and it works, at least for a few simple tests with linalg and cuda version 11.5.

Hope this helps.

jrogado avatar Dec 13 '21 02:12 jrogado