我使用Ubuntu的下方14.04 theano安装命令:Theano失踪NVCC编译
sudo apt-get install python3-numpy python3-scipy python3-dev python3-pip python3-nose g++ libopenblas-dev git
sudo pip install Theano
我已经安装了cuda7.5。如果我运行ncvv --version
,我得到以下信息:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
我不能使用GPU theano版本。我的命令和错误消息是在这里:
$sudo THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python test1.py
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.
[Elemwise{exp,no_inplace}(<TensorType(float32, vector)>)]
Looping 1000 times took 2.507168 seconds
Result is [ 1.23178029 1.61879337 1.52278066 ..., 2.20771813 2.29967761
1.62323284]
Used the cpu
命令之前,不要使用sudo。显示命令的结果:“sudo which nvcc”。 – 404pio
如果我不使用,我会得到权限被拒绝的错误。空的结果。这NVCC $' – zumma
当您使用SUDE'$ sudo的那么你的PATH环境没有看到NVCC – 404pio