2016-07-20 28 views
4

Sorry, wenn dies zufällig ist, wie ich zufällig mit diesen Sachen neu sein. Ich habe Theano eingerichtet, um meine GPU für Berechnungen auf Ubuntu Trusty Tahr zu verwenden. Ich habe AMD Radeon HD 7670M GPU. Wenn ich versuche, das Testskript ausführen, um das Funktionieren des Theanos mit gpu zu überprüfen, erhalte ich folgende Fehlermeldung:Python, theano Laufzeitfehler: konnte elemwise Unterstützung nicht initialisieren

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') 

Das Skript Ich lief die eine auf der Website war: http://deeplearning.net/software/theano/tutorial/using_gpu.html Ist es etwas falsch mit die Konfiguration? Ich glaube alle Abhängigkeiten sind richtig eingestellt, aber ich hätte ein paar Fehler machen können, aber dann hätte ich wahrscheinlich etwas anderes als Laufzeitfehler. Ich habe viel auf dem Github nach Informationen dazu gesucht, aber nichts gefunden. Das gleiche war das Ergebnis nach der Suche auf stackoverflow, heance Ich poste das hier. Jede Hilfe wird geschätzt. Dank

Zusätzliche Informationen: Python3.4, Theano blutig Rand-Version. Libgpuarray, CLBlas, OpenBlas werden alle aus dem Git Source Master Zweig erstellt. 64-Bit-Architektur.

Antwort

1

Theano-Unterstützung für OpenCL ist noch nicht fertig und es scheint keine Priorität für das Entwicklungsteam zu sein, damit das funktioniert (siehe this issue). Entweder brauchen Sie etwas Geduld oder eine nvidia-GPU, auf der Sie CUDA ausführen können.