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

Ubuntu 16.04, CUDA 8, CUDNN 5.1 & Anaconda 2.7 - Install problems #74

Open
filmo opened this issue Jan 8, 2017 · 0 comments
Open

Ubuntu 16.04, CUDA 8, CUDNN 5.1 & Anaconda 2.7 - Install problems #74

filmo opened this issue Jan 8, 2017 · 0 comments

Comments

@filmo
Copy link

filmo commented Jan 8, 2017

I'm working from a fresh install of Ubuntu 16.04 with CUDA 8.0 and CUDNN 5.1 and an Anaconda install of python 2.7. I've confirmed that my install of CUDA is working by compiling the examples from NVIDIA and they work.

I've adjusted the Makefile as instructed and perform the Make and setup.py. (I've also run 'make clean' and 'python setup.py clean')

Installed /home/philglau/anaconda2/lib/python2.7/site-packages/cudarray-0.1.dev0-py2.7-linux-x86_64.egg
Processing dependencies for cudarray==0.1.dev0
Searching for numpy==1.11.1
Best match: numpy 1.11.1
Adding numpy 1.11.1 to easy-install.pth file

Using /home/philglau/anaconda2/lib/python2.7/site-packages
Searching for Cython==0.24.1
Best match: Cython 0.24.1
Adding Cython 0.24.1 to easy-install.pth file

Using /home/philglau/anaconda2/lib/python2.7/site-packages
Finished processing dependencies for cudarray==0.1.dev0

I end up with:

/home/philglau/anaconda2/lib/libcudarray.so

And the EGG inside of my anaconda install:
/home/philglau/anaconda2/lib/python2.7/site-packages/cudarray-0.1.dev0-py2.7-linux-x86_64.egg

When I imported cudarray the first time I saw this error:

Python 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 17:42:40) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import cudarray as ca
CUDArray: CUDA back-end not available, using NumPy.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cudarray/__init__.py", line 40, in <module>
    from .numpy_backend import *
  File "cudarray/numpy_backend/__init__.py", line 2, in <module>
    from .nnet import *
  File "cudarray/numpy_backend/nnet/__init__.py", line 3, in <module>
    from .conv_bc01 import *
ImportError: No module named conv_bc01
>>> 

When I go to the appropriate folder in the EGG I see the file that seems to be 'missing'

philglau@phil-glau-ubuntu-16:~/anaconda2/lib/python2.7/site-packages/cudarray-0.1.dev0-py2.7-linux-x86_64.egg/cudarray/numpy_backend/nnet$ ls
activations.py   conv_bc01.pyc  conv.pyc      lrnorm_bc01.py   pool_bc01.py   pool.py     special.pyc
activations.pyc  conv_bc01.so   __init__.py   lrnorm_bc01.pyc  pool_bc01.pyc  pool.pyc
conv_bc01.py     conv.py        __init__.pyc  lrnorm_bc01.so   pool_bc01.so   special.py

After exiting python and re-entering python. On subsequent import cudarray operations, I only see the following:

Python 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 17:42:40) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import cudarray as ca
CUDArray: CUDA back-end not available, using NumPy.
>>> 

Is there something about either Ubuntu 16.04 or using CUDA 8 that requires a code adjustment to get it working? I know the default compiler for 16.04 is different but I'm not sure if that's what is making the difference here.

If anybody has gotten this to install on Ubuntu 16.0x please leave a note. Thank you.

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

1 participant