簡體   English   中英

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

[英]Python, theano Runtimeerror: could not initialize elemwise support

對不起,如果碰巧這件事情很簡單,因為我碰巧是這些東西的新手。 我設置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位架構。

Theano對OpenCL的支持還沒有准備好,開發團隊似乎並沒有優先考慮這項工作(參見本期 )。 所以要么你需要一些耐心,要么你需要運行CUDA的nvidia GPU。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM