报错提示: task2.info.log
2017-08-07 16:52:42,199 [theano.sandbox.cuda ]
[WARNING ] The cuda backend is deprecated and will be removed in the next release (v0.10). Please switch to the gpuarray backend. You can get more information about how to switch at this URL:
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29
2017-08-07 16:52:42,418 [theano.sandbox.cuda ]
[ERROR ] ERROR: Not using GPU. Initialisation of device gpu failed:
initCnmem: cnmemInit call failed! Reason=CNMEM_STATUS_OUT_OF_MEMORY. numdev=1
虽然backtrace有'HINTS'调整
['exception_verbosity']='high'
或者
['optimizer'] = 'fast_compile' / 'None'
但是并不起作用,可以通过调整.当前用户根目录下 ~.theanorc 文件设置解决
cnmem = 0.45
本机是把这个值一直往下调调到0.45就不报错了
但是这个值并不影响计算时真实的显存使用率,如果担心影响,可以设置
learner['mlp']['keras']['backend_parameters']['cnmem'] = 0.9
本文介绍了Theano中遇到的GPU内存错误问题及其解决方案。通过调整.cnmem参数,可以有效解决初始化GPU失败的问题,并提供了降低.cnmem参数的具体方法。
2052

被折叠的 条评论
为什么被折叠?



