我遵循了以下说明:
https://gist.github.com/jarutis/ff28bca8cfb9ce0c8b1a
但是当我尝试时:THEANO_FLAGS = device = opencl0:0 python test.py
在测试文件上我收到错误:
错误(theano.sandbox.gpuarray):pygpu已配置但无法导入Traceback(最近一次调用最后一次):文件“/home/mesayantan/.local/lib/python2.7/site-packages/theano/sandbox/gpuarray / init .py“,第20行,in
import pygpu
文件“/ usr / src / gtest / clBLAS / build / libgpuarray / pygpu / init .py”,第7行,in
from . import gpuarray, elemwise, reduction
文件“/usr/src/gtest/clBLAS/build/libgpuarray/pygpu/elemwise.py”,第3行,in
from .dtypes import dtype_to_ctype, get_common_dtype
文件“/usr/src/gtest/clBLAS/build/libgpuarray/pygpu/dtypes.py”,第6行,in
from . import gpuarray
ImportError:无法导入名称gpuarray
我没有好主意 . 我是第一次使用这些 . 我正在研究Ubuntu 14.04 LTS . 我该如何解决这个错误?
2 回答
我通过lipgpuarray网站上给出的逐步安装解决了这个问题!
下载
安装
libgpuarray
安装
pygpu
资料来源:http://deeplearning.net/software/libgpuarray/installation.html
这对我有用!祝好运
安装
blas
库似乎已经足够了 . 我正在为同样的问题做测试 .在那之后
关于
python3
的建造和安装我希望它可以帮到你 . 现在只缺少
theano
的开发版本 .