j'ai une machine aws avec 4 processeurs graphiques:theanorc pour plusieurs processeurs graphiques
00:03.0 VGA compatible controller: NVIDIA Corporation GK104GL [GRID K520] (rev a1)
00:04.0 VGA compatible controller: NVIDIA Corporation GK104GL [GRID K520] (rev a1)
00:05.0 VGA compatible controller: NVIDIA Corporation GK104GL [GRID K520] (rev a1)
00:06.0 VGA compatible controller: NVIDIA Corporation GK104GL [GRID K520] (rev a1)
et mon fichier theanorc ressemble à ceci:
[global]
floatX = float32
device = gpu0
[lib]
cnmem = 1
Quand j'ouvre un cahier jupyter et Théano d'importation Je reçois la suivant (que je suppose est seulement en utilisant un GPU):
Using Theano backend.
Using gpu device 0: GRID K520 (CNMeM is enabled with initial size: 95.0% of memory, cuDNN 5105)
/home/sabeywardana/anaconda3/lib/python3.5/site-packages/theano/sandbox/cuda/__init__.py:600: UserWarning: Your cuDNN version is more recent than the one Theano officially supports. If you see any problems, try updating Theano or downgrading cuDNN to version 5.
Cependant, si j'ouvre un deuxième bloc-notes de jupyter sur le même ma chine en même temps. Puis-je obtenir l'erreur:
ERROR (theano.sandbox.cuda): ERROR: Not using GPU. Initialisation of device 0 failed:
initCnmem: cnmemInit call failed! Reason=CNMEM_STATUS_OUT_OF_MEMORY. numdev=1
ERROR (theano.sandbox.cuda): ERROR: Not using GPU. Initialisation of device gpu failed:
initCnmem: cnmemInit call failed! Reason=CNMEM_STATUS_OUT_OF_MEMORY. numdev=1
Si je change manuellement mon .theanorc à utiliser GPU1 puis le second cahier jupyter fonctionne très bien. Donc la question est: Y at-il un moyen de configurer .theanorc pour obtenir juste le GPU disponible?
Je ne suis pas sûr que je suis. Bien qu'essayer. Essayez de remplacer gpu0 par gpu uniquement. Laissez-moi savoir si cela fonctionne. –
essayé et 'gpu?' Sans succès. –
Vérifie ma réponse. –