kengz / SLM-Lab

Modular Deep Reinforcement Learning framework in PyTorch. Companion library of the book "Foundations of Deep Reinforcement Learning".
https://slm-lab.gitbook.io/slm-lab/
MIT License
1.25k stars 264 forks source link

how can i effective use my CPU resource? #385

Closed lidongke closed 5 years ago

lidongke commented 5 years ago

Hi~

If i have 20 CPUS, 10 envs, 5 sessions, then it will starup 50 process with 20 CPUS, i consider it is not reasonable, am i right ? how can i fullly and reasonable use my CPU resource? @kengz

kengz commented 5 years ago

hi, let's move this to #384 to discuss resource allocation in general

kengz commented 5 years ago

@lidongke you can now specify num_cpus and num_gpus per trial directly under the meta spec