可以一开始分配完(静态分配, 如程序员使用pthread API将task分配),也可以边执行,边根据情况分配(动态分配,如ISPC中tasks到线程的分配)。 一般由程序员负责(如lecture2中讲ISPC时的前两个版本),有些语言或者runtimes也会负责(如ISPC中的foreach,以及ISPC中tasks到线程的分配) (orchestration)协调
How is a raw file read by the thread created by pthread? What is the memory sharing principle of a sendable class object of ArkTS? How do I implement synchronous function calls in ArkTS as easily as using synchronized in Java methods? Do ArkTS APIs support overloading? How do I...
负载均衡和减少通信消耗是很难同时做到的,例如负载均衡最好的方法是随机分配到各个worker,但这样会使得局部性变弱,加大通信的时间。 可以一开始分配完(静态分配, 如程序员使用pthread API将tasks分配),也可以边执行,边根据情况分配(动态分配,如ISPC中tasks到线程的分配)。 一般由程序员负责(如lecture2中讲ISPC时的...