andersbll / cudarray

CUDA-based NumPy
MIT License
233 stars 61 forks source link

CUDArray: CUDA back-end not available, using NumPy #65

Open 00fq00 opened 7 years ago

00fq00 commented 7 years ago

I've installed cudarray, But Still says CUDArray: CUDA back-end not available, using NumPy,I'm sure my rLD_LIBRARY_PATH points to libcudarray.so ,but it doesn't work

PATH=/usr/local/cuda-7.5/bin:/usr/local/bin

Python 2.7.5 (default, Aug  9 2016, 05:27:46) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cudarray
CUDArray: CUDA back-end not available, using NumPy.
>>> 
oscarriddle commented 7 years ago

Hi, @00fq00 I think this is because incorrect cudarray installation. Please include below to /etc/profile and clone a new cudarray repo and reinstall it.

export INSTALL_PREFIX=/usr/local export CUDA_PREFIX=/usr/local/cuda export CUDNN_ENABLED=1

Thanks,

mxchinegod commented 7 years ago

@oscarriddle Hello, I had this same issue and unfortunately changing the environment variables didn't fix it.

endymion commented 7 years ago

I have the same issue as lots of people have had. I thought that the problem might be that the CUDArray build assumes that the CUDA libraries are available in /usr/local/cuda/lib. On my setup there is no such folder. I symlinked /usr/local/cuda/lib64 to /usr/local/cuda/lib and rebuilt CUDArrary.

But that did not fix the problem. CUDArray is just proxying through to NymPy.

I'm setting INSTALL_PREFIX, CUDA_PREFIX, CUDNN_ENABLED, and even LD_LIBRARY_PATH. Doesn't work. No indication about why until you run it and it proxies through to NumPy.

bradasteiner commented 5 years ago

I am running into the same issue. Has anyone been able to resolve it?

BaqarAbbas55 commented 3 years ago

Hi, I know this is a fairly old post but I am trying to implement the same work you did by installing CUDArray but unfortunately couldn't. I am using pycharm to run my python projects on a windows based machine and after running in C:\user\anaconda3 - python setup.py install it runs totally fine. Then I install deeppy in C:\user\anaconda3 folder again, runs well. But when it comes to running celeba-aegan.py, I get the message. CUDA-backend not available using numpy.

Now, my problems constitute,

  1. I don't know where to pass those prefix and make info.
  2. Do I have to copy everything both cudarray and deeppy in anaconda3 for the installation.

I have been stuck at this so long and before coming here I did a lot of research to avoid bothering you.

I hope you understand. Thanks