在AMD Radeon上尝试OpenCL + Theano时出现“ pygpu已配置但无法导入”错误

Sayantan Ghosh |

我遵循了以下指示:

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

但是然后当我尝试:
在测试文件上THEANO_FLAGS = device = opencl0:0 python test.py时出现错误:

错误(theano.sandbox.gpuarray):已配置pygpu,但无法导入回溯(最近一次调用最近):文件“ /home/mesayantan/.local/lib/python2.7/site-packages/theano/sandbox/gpuarray / init .py“,第20行,在

import pygpu

在第7行的“ / usr / src / gtest / clBLAS / build / libgpuarray / pygpu / init .py”文件中

from . import gpuarray, elemwise, reduction

在第3行的“ /usr/src/gtest/clBLAS/build/libgpuarray/pygpu/elemwise.py”文件中

from .dtypes import dtype_to_ctype, get_common_dtype

在第6行的“ /usr/src/gtest/clBLAS/build/libgpuarray/pygpu/dtypes.py”文件中

from . import gpuarray

ImportError:无法导入名称gpuarray

我没有好主意。我是第一次使用所有这些。我正在使用Ubuntu 14.04 LTS。如何解决此错误?

有毒的

我通过lipgpuarray网站上提供的分步安装解决了这个问题!

下载

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

安装 libgpuarray

# extract or clone the source to <dir>
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 ..

安装 pygpu

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

资料来源:http : //deeplearning.net/software/libgpuarray/installation.html

这对我有用!祝好运

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

尝试使用 DRI_PRIME=1 时出现 AMD Radeon R5M430 GPU 错误 -> 无法为缓冲区分配虚拟地址

在既定的theano环境上使用keras时出现奇怪的错误

尝试使用Webpack构建AMD模块—出现“无法解析模块'导出'”错误

在AMD GPU中将Python + Theano与OpenCL一起使用

是什么导致视频在AMD Radeon HD 6700上开始出现黑色或小故障?

在带有Radeon HD Graphics的AMD A8-APU上启动OS X Mavericks时出错

Debian Sid,AMD RS880 [Radeon HD 4250],启动时出现黑屏

为什么在尝试更新共享变量时出现Theano TypeError?

多台显示器无法在Windows 7上运行-2x AMD Radeon 7700

我无法在我的AMD Radeon HD 8730M上使用ROCm

启动并启用AMD Radeon显卡后出现黑屏

AMD HD Radeon 8570M显卡出现问题

使用theano后端加载keras模型时出现断言错误

如何配置AMD Radeon可切换显卡?

为什么对AMD64的内存进行未对齐访问有时会在AMD64上出现段错误?

在插槽G34主板上安装AMD CPU时出现问题

Ubuntu 16.04 在 AMD Radeon 后无法启动(radeon VCE init 错误 -22)

尝试从 urlresolver 导入保留时出现错误

尝试导入Matplotlib时出现错误

OpenCL / AMD:深度学习

尝试导入openvpn配置文件时出现“错误:插件不支持导入功能”

尝试在AMD C-60上运行Windows的Docker时不支持虚拟化

尝试配置angularfire时出现喷油器错误

Theano 和 pygpu:错误

尝试导入本地模块#222时,worker上出现ModuleNotFoundError

AMD Radeon RX 5700 XT

AMD Radeon显卡上的微小开关是什么?

尝试在 Scrapy Cloud 上运行项目时出现依赖错误

尝试在Windows上创建扩展时出现PostgreSQL错误