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
cublas library not found #269
Comments
I also tried I got a similar error
|
tried 'scikit-cuda==0.5.1' |
Re the error you obtained with CUDA 10, try the latest revision on GitHub. If that doesn't work, check your CUDA installation; skcuda uses Python ctypes' built-in shared library loader to look for libraries - if a library isn't found, it may need to be added to whatever path or registry entry Win10 uses to search for libraries. The error you obtained with CUDA 8 is a pycuda error which suggests that pycuda wasn't built/installed properly. |
What is the system path of cublas? |
According to NVIDIA's online docs for Windows, the default CUDA installation path is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0 (the actual path may differ on your system depending on how you installed it) - the libraries might be in a subfolder. Unfortunately, I don't have a Win10 system with a GPU in it to confirm. |
Cublas.h is available here C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include and What else could be the problem? |
if anyone made it work on windows 10, plz let me know python version, cuda version and scikit-cuda version |
For Win10, try adding C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib\x64 to your PATH environmental variable (assuming that CUDA 10 was installed in the default location). |
I face the same error even after adding this path to environment variable |
I assume that the CUBLAS dll files are actually located in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib\x64 ? If so, not sure why Python can't see them. |
the dll was that there in 8.0 version (as I uninstalled 10.0). I removed that comment as soon as I found it. But even after adding environment variable I got the same error. |
if anyone made it work on windows 10, plz let me know python version, cuda version and scikit-cuda version |
You may wish to inquire on stackoverflow or some similar forum, as the failure of Python ctypes to find a shared library is not specific to skcuda. |
This issue is only windows specific. (Just tested in Ubuntu + Nvidia where it runs fine) |
I had the same error on similar specs:
and got it running by installing scikit-cuda-0.5.3 from github. The cublas DLL was called cublas64_100.dll and this was not expected in scikit-cuda-0.5.2 |
@ataudt Yes - that's why I suggested the latest GitHub revision. That said, I'm not sure why adding the path to the dll on the Windows system @cegprakash described to PATH didn't fix the problem on his system; is there a CUDA-related path in your system's PATH variable? |
Could someone provide instructions on how to get version 0.5.3 from github? I'd very much prefer not to build from source. |
@bryantChhun If you have
Or, just clone the repository and install as follows:
|
FYI, installing latest version (0.5.3) solved this problem for me. |
scikit-cuda version : 0.5.3 raise OSError('cublas library not found') It is trying to load cublas64_40.dll, but I have cublas64_10.dll. |
@ystallonne Not sure why NVIDIA decided to name the Windows CUBLAS library the way they did - updated cublas.py to look for cublas64_10.dll. Try the latest revision on GitHub. |
Thank you, @lebedov I ran "python setup.py test" and I see that cufft is probably next: |
@ystallonne Ah, yes - updated cusolver.py, cufft.py, and cusparse.py accordingly. |
Hei, I find out a bug in 'cublus.py'.
When I print out the list, I get the following:
But what I really have in windows is 'cublas64_100.dll'. So, it is adviced that the code should be changed to
By the way, this error also exists in 'cusolver.py' and maybe other files... |
@zengzhi2015 You presumably are using CUDA 10.0. It seems that the shared library was named cublas64_100.dll in CUDA 10.0 and cublas64_10.dll in CUDA 10.1. I updated the files to explicitly list the shared library file names used on Linux and Windows. |
I'm locking this issue because folks keep on tagging on comments to it; this complicates debugging because each scenario may potentially be different. For users who encounter problems that seem similar to this one in the future, please submit a new issue. |
Problem
step 1: install
scikit-cuda==0.5.2
step 2: Just do
import skcuda.linalg as linalg
Error
File "C:\Users\cegprakash.virtualenvs\similarity_articles-JuZA6FGA\lib\site-packages\skcuda\linalg.py", line 23, in
from . import cublas
File "C:\Users\cegprakash.virtualenvs\similarity_articles-JuZA6FGA\lib\site-packages\skcuda\cublas.py", line 55, in
raise OSError('cublas library not found')
OSError: cublas library not found
Environment
The text was updated successfully, but these errors were encountered: