Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while importing skcuda.linalg #321

Open
hyysky opened this issue Aug 10, 2021 · 4 comments
Open

Error while importing skcuda.linalg #321

hyysky opened this issue Aug 10, 2021 · 4 comments

Comments

@hyysky
Copy link

hyysky commented Aug 10, 2021

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
Copy link
Author

hyysky commented Aug 11, 2021

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?

@decoli
Copy link

decoli commented Aug 26, 2021

The same problem.

@jrogado
Copy link

jrogado commented Dec 13, 2021

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
Copy link

jrogado commented Dec 13, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants