【问题标题】:Python, theano Runtimeerror: could not initialize elemwise supportPython,theano 运行时错误:无法初始化 elemwise 支持
【发布时间】:2016-11-24 01:25:09
【问题描述】:

对不起,如果这碰巧是微不足道的,因为我碰巧对这些东西不熟悉。我设置 theano 以使用我的 gpu 在 ubuntu 可信赖的 tahr 上进行计算。我有 AMD Radeon HD 7670M gpu。当我尝试运行测试脚本以检查 theano 与 gpu 的功能时,我收到以下错误:

Mapped name None to device opencl0:0: Turks
Traceback (most recent call last):
  File "test.py", line 11, in <module>
    f = function([], T.exp(x))
  File "/home/sachu/git/Theano/theano/compile/function.py", line 322, in function
    output_keys=output_keys)
  File "/home/sachu/git/Theano/theano/compile/pfunc.py", line 480, in pfunc
    output_keys=output_keys)
  File "/home/sachu/git/Theano/theano/compile/function_module.py", line 1784, in orig_function
    defaults)
  File "/home/sachu/git/Theano/theano/compile/function_module.py", line 1648, in create
    input_storage=input_storage_lists, storage_map=storage_map)
  File "/home/sachu/git/Theano/theano/gof/link.py", line 699, in make_thunk
    storage_map=storage_map)[:3]
  File "/home/sachu/git/Theano/theano/gof/vm.py", line 1042, in make_all
    no_recycling))
  File "/home/sachu/git/Theano/theano/gof/op.py", line 975, in make_thunk
    no_recycling)
  File "/home/sachu/git/Theano/theano/gof/op.py", line 875, in make_c_thunk
    output_storage=node_output_storage)
  File "/home/sachu/git/Theano/theano/gof/cc.py", line 1189, in make_thunk
    keep_lock=keep_lock)
  File "/home/sachu/git/Theano/theano/gof/cc.py", line 1130, in __compile__
    keep_lock=keep_lock)
  File "/home/sachu/git/Theano/theano/gof/cc.py", line 1602, in cthunk_factory
    *(in_storage + out_storage + orphd))
RuntimeError: ('The following error happened while compiling the node', GpuElemwise{exp,no_inplace}(<GpuArrayType<None>(float64, (False,))>), '\n', 'Could not initialize elemwise support')

我运行的脚本是网站上可用的脚本:http://deeplearning.net/software/theano/tutorial/using_gpu.html 是不是配置有问题?我相信所有依赖项都已正确设置,但我可能会犯一些错误,但我可能会遇到运行时错误以外的其他错误。我在 github 上搜索了很多与此相关的信息,但一无所获。在stackoverflow上搜索后的结果也是如此,我在这里发布了这个。任何帮助表示赞赏。 谢谢

附加信息:python3.4,theano 前沿版本。 Libgpuarray、clblas、openblas 都是从 git 源码 master 分支构建的。 64 位架构。

【问题讨论】:

    标签: python opencl theano gpu


    【解决方案1】:

    Theano 对 OpenCL 的支持还没有准备好,开发团队似乎并不是优先考虑让这个工作(见 this issue)。因此,您要么需要一些耐心,要么需要一个可以运行 CUDA 的 nvidia GPU。

    【讨论】:

      猜你喜欢
      • 2017-11-04
      • 2012-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-18
      • 1970-01-01
      • 2013-08-01
      • 1970-01-01
      相关资源
      最近更新 更多