ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

How to check GPU works properly.

Open RavenLeeANU opened this issue 7 years ago • 4 comments

Hi guys, I installed cuda and cudnn for tensorflow gpu version. But I do not know how to check if it works or just work as CPU version. Can someone give me some hints for that? thanks..

RavenLeeANU avatar Dec 17 '18 06:12 RavenLeeANU

According to this thread you can run this command to see if there is a GPU to use.

tf.test.is_gpu_available()

vincentpierre avatar Dec 17 '18 17:12 vincentpierre

I used this command with result: TRUE, however when I train my GFX card load is not going up at all and training is quite slow. Cpu is like 50-100% busy.

image

my tf version is 1.12.0

oddEventHorizon avatar Dec 29 '18 15:12 oddEventHorizon

ML-Agents is not optimized for GPU usage yet.

In general, Reinforcement Learning is hard to be optimized for GPUs, because especially on-policy algorithms do not sample enough data to efficiently use a GPU. So most of the time, you are better of with a CPU for now. Highly scaled up systems like IMPALA or OpenAI Five take advantage of a GPU.

MarcoMeter avatar Jan 02 '19 10:01 MarcoMeter

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 02 '20 21:01 lock[bot]