我是使用MPI进行并行编程的新手。我需要并行化一个300x200的格子玻尔兹曼立方体..我通过根据大小将200分成块来管理按行分块。然而,我的代码只有在有4核和8核的情况下才能工作……我需要在16个cores..Can上运行这个程序,任何人请告诉我如何将200划分为16个内核。../* get no of process (size) & rank of each proces*/
MPI_
for R1 in randrange(0, (len(lattice)): H =-j*lattice[R1,R2]*(lattice[R1+1,R2],lattice[R1-1,R2], lattice[R1,R2+1],lattice[R1,R2-1]) +h*lattice[R1,R2]
H_flip =