1
gpuを使用するようにtheano 0.9を設定しようとしていますが、このようなエラーがあります。 私はWindows 10をnvidia GeForce 940mとcuda 8で使用しています。以前は、私のシステムはgpu計算のためにtheano 0.8でうまく動作します。私はちょうどtheanoを更新しました。エラー(theano.gpuarray):pygpuを初期化できませんでした。サポートが無効になりました。
ERROR (theano.gpuarray): Could not initialize pygpu, support disabled
Traceback (most recent call last):
File "C:\Users\YL\Anaconda2\lib\site- packages\theano\gpuarray\__init__.py",
line 175, in <module>
use(config.device)
File "C:\Users\YL\Anaconda2\lib\site-packages\theano\gpuarray\__init__.py", line 162, in use
init_dev(device, preallocate=preallocate)
File "C:\Users\YL\Anaconda2\lib\site-packages\theano\gpuarray\__init__.py", line 65, in init_dev
sched=config.gpuarray.sched)
File "pygpu\gpuarray.pyx", line 614, in pygpu.gpuarray.init (pygpu/gpuarray.c:9415)
File "pygpu\gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:9106)
File "pygpu\gpuarray.pyx", line 1021, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13468)
GpuArrayException: Error loading library: -1
gpuの設定がないと、theanoは正常に動作します。それ以外の場合は、エラーが発生します。私は設定に間違ったことをしなければならないと思う。私の.theanorcファイルは次のとおりです。
[global]
device = cuda
floatX = float32
[cuda]
root = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5
[nvcc]
fastmath = True
{device = cuda0}の設定を試してみるか、https://stackoverflow.com/questions/43577788/error-loading-library-gpuarray-with-theano –
@K_Augusを見てみてください。この問題を解決してください – jingweimo
あなたはcuda 8.0を使用していますが、あなたのルートパスはv7.5を指しています...? –