正在加载图片...
DAWNING 乡 曙光 DAWNING MP|程序的的编译与运行 科拔计算未来 mpif77 hello f Ei mpicc hello c 一默认生成aout的可执行代码. 小写o mpif77- o hello hello. f或 picc Fo /hello hello.c 生成heo的可执行代码 p mpirun np 4 aout The number of process mpirun +np 4 hello -4指定np的实参,表示进程数,由用户指定 -aout/ hello要运行的MP并行程序 2021年1月 MP|并行程序设计 17/2172021年1月 MPI并行程序设计 17/217 MPI程序的的编译与运行 • mpif77 hello.f 或 mpicc hello.c – 默认生成a.out的可执行代码. • mpif77 –o hello hello.f 或 • mpicc –o hello hello.c – 生成hello的可执行代码. • mpirun –np 4 a.out • mpirun –np 4 hello – 4 指定np的实参,表示进程数,由用户指定. – a.out / hello 要运行的MPI并行程序. %小写o %np: The number of process
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有