root@deepseek2:/opt/installPkgs/mpich-4.2.3# cd examples/ #mpi接口对hellow.c进行编译 root@deepseek2:/opt/installPkgs/mpich-4.2.3/examples# mpicc hellow.c -o hellow #运行hellow文件“mpirun -np N ./hellow”,将其中的N换成自定义进程数比如3 root@deepseek2:/opt/installPkgs/mpich-4.2.3/examples# mpirun -np 3 ./hellow Hello world from process 0 of 3 Hello world from process 1 of 3 Hello world from process 2 of 3
1 2
root@deepseek2:/opt/code_repos/nvbandwidth# cmake -DMULTINODE=1 . root@deepseek2:/opt/code_repos/nvbandwidth# make