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

Cant find cuda driver #2

Closed
kmichaelkills opened this issue Mar 29, 2017 · 4 comments
Closed

Cant find cuda driver #2

kmichaelkills opened this issue Mar 29, 2017 · 4 comments
Labels

Comments

@kmichaelkills
Copy link
Collaborator

Cant find cuda driver:
However, I do have pytorch working in this virtualenv.

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-244-a2d06b630338> in <module>()
----> 1 import scatwave

/home/rafael/code/pyscatwave/scatwave/__init__.py in <module>()
      6 
      7 
----> 8 from .scattering import Scattering
      9 from . import utils

/home/rafael/code/pyscatwave/scatwave/scattering.py in <module>()
      8 import warnings
      9 import torch
---> 10 from .utils import cdgmm, Modulus, Periodize, Fft
     11 from .filters_bank import filters_bank
     12 from torch.legacy.nn import SpatialReflectionPadding as pad_function

/home/rafael/code/pyscatwave/scatwave/utils.py in <module>()
      6 
      7 import torch
----> 8 from skcuda import cublas, cufft
      9 from pynvrtc.compiler import Program
     10 import numpy as np

/home/rafael/.virtualenvs/cvndev/local/lib/python2.7/site-packages/skcuda/cublas.py in <module>()
     20 from string import Template
     21 
---> 22 from . import cuda
     23 from . import utils
     24 

/home/rafael/.virtualenvs/cvndev/local/lib/python2.7/site-packages/skcuda/cuda.py in <module>()
      8 
      9 from .cudart import *
---> 10 from .cudadrv import *

/home/rafael/.virtualenvs/cvndev/local/lib/python2.7/site-packages/skcuda/cudadrv.py in <module>()
     30         break
     31 if _libcuda == None:
---> 32     raise OSError('CUDA driver library not found')
     33 
     34 # Exceptions corresponding to various CUDA driver errors:

OSError: CUDA driver library not found

@kmichaelkills
Copy link
Collaborator Author

problem is my scikit-cuda not working...

@kmichaelkills
Copy link
Collaborator Author

Ok, fixed last problem with:
/usr/lib/x86_64-linux-gnu$ sudo ln -s libcuda.so.1 libcuda.so
scikit-cuda searchs for libcuda.so shared library....

@szagoruyko
Copy link
Collaborator

have to do the same for libcufft.so maybe?

@eugenium eugenium closed this as completed Apr 3, 2017
@kmichaelkills
Copy link
Collaborator Author

I had no problem with libcufft.so in my computer. Funny part is that i had pytorch running without that symbolic link (Im not using anaconda)

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

No branches or pull requests

4 participants