how to correctly use multple cpu cores if i use ray.remote(num_cpus=N) with N >= 2?

how to correctly use multple cpu cores if i use ray.remote(num_cpus=N) with N >= 2?

Can you describe in more detail what you are seeing? The number of cores is incorrect when you do ray.remote(num_cpus=N)?

cc: @jjyao

Hi @Wangzhanzhan,

Ray resources are logical: Resources β€” Ray 2.4.0. It’s up to the application code to use physical cpus. For example, in order to use more than 1 cpu, you can start multiple threads in your task but you need to bypass the GIL.

1 Like