taichi-dev / taichi

Productive, portable, and performant GPU programming in Python.
https://taichi-lang.org
Apache License 2.0
25.51k stars 2.28k forks source link

run taichi using multiple cpus #8396

Open liuyunpu opened 1 year ago

liuyunpu commented 1 year ago

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?

jim19930609 commented 11 months ago

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

yanang007 commented 11 months ago

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.

liuyunpu commented 11 months ago

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