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

driver_types.h: No such file or directory #60

Open
scailer opened this issue Jun 19, 2016 · 2 comments
Open

driver_types.h: No such file or directory #60

scailer opened this issue Jun 19, 2016 · 2 comments

Comments

@scailer
Copy link

scailer commented Jun 19, 2016

Archlinux
Linux pm 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64 GNU/Linux
VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 755M](rev a1)

$ LANG=C pacman -Ss cuda
community/cuda 7.5.18-2 [installed]
    NVIDIA's GPU programming toolkit
community/pycuda-headers 2016.1.1-1 [installed]
    Python wrapper for Nvidia CUDA
community/python-pycuda 2016.1.1-1 [installed]
    Python wrapper for Nvidia CUDA
community/python2-pycuda 2016.1.1-1 [installed]
    Python wrapper for Nvidia CUDA
$ LANG=C pip install git+https://github.com/andersbll/cudarray
Collecting git+https://github.com/andersbll/cudarray
  Cloning https://github.com/andersbll/cudarray to /tmp/pip-0e3v1cvw-build
Requirement already satisfied (use --upgrade to upgrade): cython>=0.21 in ./env/lib/python3.5/site-packages (from cudarray==0.1.dev0)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.8 in ./env/lib/python3.5/site-packages (from cudarray==0.1.dev0)
Installing collected packages: cudarray
  Running setup.py install for cudarray ... error
    Complete output from command /home/scailer/projects/local/neural_artistic_style/neural_artistic_style/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-0e3v1cvw-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ss1gsh0v-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/scailer/projects/local/neural_artistic_style/neural_artistic_style/env/include/site/python3.5/cudarray:
    /home/scailer/projects/local/neural_artistic_style/neural_artistic_style/env/lib/python3.5/site-packages/setuptools/dist.py:285: UserWarning: Normalizing '0.1.dev' to '0.1.dev0'
      normalized_version,
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/cudarray
    copying cudarray/reduction.py -> build/lib.linux-x86_64-3.5/cudarray
    copying cudarray/random.py -> build/lib.linux-x86_64-3.5/cudarray
    copying cudarray/linalg.py -> build/lib.linux-x86_64-3.5/cudarray
    copying cudarray/helpers.py -> build/lib.linux-x86_64-3.5/cudarray
    copying cudarray/elementwise.py -> build/lib.linux-x86_64-3.5/cudarray
    copying cudarray/cudarray.py -> build/lib.linux-x86_64-3.5/cudarray
    copying cudarray/base.py -> build/lib.linux-x86_64-3.5/cudarray
    copying cudarray/__init__.py -> build/lib.linux-x86_64-3.5/cudarray
    creating build/lib.linux-x86_64-3.5/cudarray/wrap
    copying cudarray/wrap/__init__.py -> build/lib.linux-x86_64-3.5/cudarray/wrap
    creating build/lib.linux-x86_64-3.5/cudarray/numpy_backend
    copying cudarray/numpy_backend/__init__.py -> build/lib.linux-x86_64-3.5/cudarray/numpy_backend
    creating build/lib.linux-x86_64-3.5/cudarray/nnet
    copying cudarray/nnet/special.py -> build/lib.linux-x86_64-3.5/cudarray/nnet
    copying cudarray/nnet/pool.py -> build/lib.linux-x86_64-3.5/cudarray/nnet
    copying cudarray/nnet/math.py -> build/lib.linux-x86_64-3.5/cudarray/nnet
    copying cudarray/nnet/image.py -> build/lib.linux-x86_64-3.5/cudarray/nnet
    copying cudarray/nnet/conv.py -> build/lib.linux-x86_64-3.5/cudarray/nnet
    copying cudarray/nnet/__init__.py -> build/lib.linux-x86_64-3.5/cudarray/nnet
    creating build/lib.linux-x86_64-3.5/cudarray/extra
    copying cudarray/extra/array.py -> build/lib.linux-x86_64-3.5/cudarray/extra
    copying cudarray/extra/__init__.py -> build/lib.linux-x86_64-3.5/cudarray/extra
    creating build/lib.linux-x86_64-3.5/cudarray/batch
    copying cudarray/batch/linalg.py -> build/lib.linux-x86_64-3.5/cudarray/batch
    copying cudarray/batch/__init__.py -> build/lib.linux-x86_64-3.5/cudarray/batch
    creating build/lib.linux-x86_64-3.5/cudarray/numpy_backend/nnet
    copying cudarray/numpy_backend/nnet/special.py -> build/lib.linux-x86_64-3.5/cudarray/numpy_backend/nnet
    copying cudarray/numpy_backend/nnet/pool.py -> build/lib.linux-x86_64-3.5/cudarray/numpy_backend/nnet
    copying cudarray/numpy_backend/nnet/conv.py -> build/lib.linux-x86_64-3.5/cudarray/numpy_backend/nnet
    copying cudarray/numpy_backend/nnet/activations.py -> build/lib.linux-x86_64-3.5/cudarray/numpy_backend/nnet
    copying cudarray/numpy_backend/nnet/__init__.py -> build/lib.linux-x86_64-3.5/cudarray/numpy_backend/nnet
    running build_ext
    cythoning ./cudarray/wrap/cudart.pyx to ./cudarray/wrap/cudart.cpp
    building 'cudarray.wrap.cudart' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/cudarray
    creating build/temp.linux-x86_64-3.5/cudarray/wrap
    gcc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -I/usr/local/cuda/include -I./include -I/home/scailer/projects/local/neural_artistic_style/neural_artistic_style/env/lib/python3.5/site-packages/numpy/core/include -I/home/scailer/projects/local/neural_artistic_style/neural_artistic_style/env/lib/python3.5/site-packages/numpy/core/include -I/usr/include/python3.5m -c ./cudarray/wrap/cudart.cpp -o build/temp.linux-x86_64-3.5/./cudarray/wrap/cudart.o -O3 -fPIC -Wall -Wfatal-errors
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    ./cudarray/wrap/cudart.cpp:272:26: fatal error: driver_types.h: No such file or directory
     #include "driver_types.h"
                              ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/home/scailer/projects/local/neural_artistic_style/neural_artistic_style/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-0e3v1cvw-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ss1gsh0v-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/scailer/projects/local/neural_artistic_style/neural_artistic_style/env/include/site/python3.5/cudarray" failed with error code 1 in /tmp/pip-0e3v1cvw-build/
@andersbll
Copy link
Owner

I don't think you can install directly through pip. Check the installation instructions.

@scailer
Copy link
Author

scailer commented Jun 22, 2016

Thank you for your answer!
I'm successfully run code on AWS EC on Ubuntu.
May be useful links for someone:

  • Install NVIDIA 364 [http://askubuntu.com/questions/770092/is-it-a-good-idea-to-install-nvidia-361-drivers-in-14-04]
  • Install CUDA + cuDNN [http://corpocrat.com/2014/11/03/how-to-setup-caffe-to-run-deep-neural-network/]
  • CUDA 7.5 (only toolkit) [https://developer.nvidia.com/cuda-downloads]
  • cuDNN (for CUDA 7.5) [http://developer.download.nvidia.com/compute/redist/cudnn/v5/cudnn-7.5-linux-x64-v5.0-ga.tgz]

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

2 participants