2016-09-02 11 views
9

AMD OpenCL + Theano ile çalışırken bu talimat takip ettim hata: Ben çalıştım sonraalma "pygpu yapılandırıldı ancak alınamadı" Radeon

https://gist.github.com/jarutis/ff28bca8cfb9ce0c8b1a

Ama: THEANO_FLAGS = aygıt = opencl0:

hATA (theano.sandbox.gpuarray): Ben hata alıyorum Test dosya üzerinde 0 piton test.py
pygpu yapılandırıldı ancak (son en son çağrı) traceback alınamadı: Dosya "/ ev/mesayant "

import pygpu 

Dosya, satır 20," bir/.local/lib/python2.7/site paketleri/Theano/Sandbox/gpuarray/init .py/usr/src/GTEST/clBLAS/build/libgpuarray/pygpu/init /usr/src/gtest/clBLAS/build/libgpuarray/pygpu/elemwise.py " "

from . import gpuarray, elemwise, reduction 

Dosya, hat 7," .py, satır 3, içinde

from .dtypes import dtype_to_ctype, get_common_dtype 

Fil

from . import gpuarray 

ImportError e "/usr/src/gtest/clBLAS/build/libgpuarray/pygpu/dtypes.py", hat 6,: Ben iyi bir fikir yok adı gpuarray

alamıyor. Bunları ilk defa kullanıyorum. Ubuntu 14.04 LTS üzerinde çalışıyorum. Bu hatayı nasıl çözebilirim?

cevap

7

Bu sorunu, adım adım kurulum formu olan lipgpuarray web sitesi ile düzelttim!

İndir

git clone https://github.com/Theano/libgpuarray.git 
cd libgpuarray 

yükleyin yüklemek

cd <dir> 
mkdir Build 
cd Build 
# you can pass -DCMAKE_INSTALL_PREFIX=/path/to/somewhere to install to an alternate location 
cmake .. -DCMAKE_BUILD_TYPE=Release # or Debug if you are investigating a crash 
make 
make install 
cd .. 

libgpuarray pygpu

# This must be done after libgpuarray is installed as per instructions above. 
python setup.py build 
python setup.py install 

Kaynak: http://deeplearning.net/software/libgpuarray/installation.html

Bu kel Benim için ked! İyi Şanslar

+1

"python setup.py build" satırı cmake sırasında bir ön ek belirtirseniz biraz farklıdır.Bağlantı, bu bağlamda doğru satırı sağlar. –

4

Yüklemek blas kütüphanesi çok az görünüyor. Aynı problem için test yapıyorum.

cd ~ 
git clone https://github.com/clMathLibraries/clBLAS.git 
cd clBLAS/ 
mkdir build 
cd build/ 
sudo apt-cache search openblas 
sudo apt-get install libopenblas-base libopenblas-dev 
sudo apt-get install liblapack3gf liblapack-doc liblapack-dev 
cmake ../src 
make 
sudo make install 

Ve benim için

git clone https://github.com/Theano/libgpuarray.git 
cd libgpuarray 
mkdir Build 
cd Build 
cmake .. -DCMAKE_BUILD_TYPE=Release 

make 
sudo make install 
cd .. 
sudo apt-get install cython 
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git 

sonra

ben sana yardım umut
python3 setup.py build 
sudo -H python3 setup.py install 

python3. Şimdi sadece theano'nun dev versiyonu benim için eksik.

İlgili konular