taichi icon indicating copy to clipboard operation
taichi copied to clipboard

run taichi using multiple cpus

Open liuyunpu opened this issue 1 year ago • 3 comments

Concisely describe the proposed feature it seems taichi cannot use two cpus(two cpus on one motherboard) when using cpu backend, only one cpu is working, as shown below. 732437599d0efebecedead1457826ffa2ca123ab

Will taichi supports multiple cpus in the future?

liuyunpu avatar Oct 28 '23 08:10 liuyunpu

Hmmm, so far we only support using multi-cores of a single CPU. I think it's a long way to go to support dispatching kernel tasks across different CPUs

jim19930609 avatar Nov 29 '23 04:11 jim19930609

As a workaround, you may manually divide tasks and use process pool to launch mutilple kernels to utilize multi-cpu, which is how our project works for now.

yanang007 avatar Dec 15 '23 08:12 yanang007

As a workaround, you may manually divide tasks and use process pool to launch mutilple kernels to utilize multi-cpu, which is how our project works for now.

thanks, that seems a viable solution

liuyunpu avatar Dec 15 '23 08:12 liuyunpu