正在加载图片...
曙光 计算,改变您的现在 MPI程序的的编译与运行 e mpif77 hello.f mpicc hello.c 回默认生成a.out的可执行代码. e mpif77-o hello hello.f 小写 e mpicc-o/hello hello.c ▣生成hello的可执行代码. Anp: e mpirun -np 4 a.out The number of process. e mpirun -np 4 hello 口4指定np的实参,表示进程数,由用户指定. ua.out hello要运行的MPl并行程序. 2024年2月 15/55 2024年2月 15/55 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 高等教育资讯网 版权所有