Python,theano Runtimeerror:无法初始化elemwise支持

时间:2016-07-20 17:52:49

标签: python opencl theano gpu-programming

很抱歉,如果碰巧这件事情变得微不足道,因为我碰巧是这些东西的新手。我设置theano使用我的gpu在ubuntu trusty 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之后的结果相同,heance我在这里发布。任何帮助表示赞赏。 谢谢

附加信息:python3.4,theano流血边版。 Libgpuarray,clblas,openblas都是从git source master分支构建的。 64位架构。

1 个答案:

答案 0 :(得分:1)

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