python multiprocessing parallel
分别通过serial和MPI,数值计算pi, 比较计算速率。import sysimport timeimport multiprocessing as mpimport numpy as npnumint=int(sys.argv[1])def integral_pi(numint): integral=0.0 x=np.zeros(numint,floa...
原创
2019-10-03 14:52:08 ·
326 阅读 ·
0 评论