Hi Justin,
Thank you for your answer.
Yes, I’ve read the [A Guide To Parallelism and Resources — Ray 2.2.0](https://A Guide To Parallelism and Resources — Ray 2.2.0) document but I didn’t understand some points.
For example, if I’ve a 4 cores CPU and I want to do 8 trials, what is the best configuration (shortest computation time) :
tune.with_resources(trainable, {"cpu": 1}) # 4 concurrent trials at a time
or
tune.with_resources(trainable, {"cpu": 0.5}) # 8 concurrent trials at a time
If I suppose that each trial takes the same amount of time to be processed (duration = T, time needed for 1 trial to be processed by 1 CPU), I expect this :
For solution 1 :
duration = T (first, the first 4 trials are processed by the 4 CPU at the same time)
duration = T (then, the last 4 trials are processed by the 4 CPU)
total duration = T + T
For solution 2 :
At the same time, each CPU has to process 2 concurrent trials, so the duration to finish this 2 trials is 2T.
total duration = 2T
Is it right to think that each solution will take the same amount of time?
And on the How to leverage GPUs? chapter, in the second example
tune.with_resources(trainable, {"cpu": 2, "gpu": 1})
it’s said :
If you have 4 CPUs and 1 GPU on your machine, this will run 1 trial at a time.
Does it means that one trial will use the GPU AND all the CPU?
Philippe