export PATH=/path/to/ARPS/arps5.3.4/bin:$PATH
cd /path/to/ARPS/arps5.3.4/sounding
{ time -p arps ../input/arps.input arps.output ; } 2>&1 | tee -a arps.log
sed -i '211s/nproc_x = 1/nproc_x = 8/g' ../input/arps.input sed -i '212s/nproc_y = 1/nproc_y = 16/g' ../input/arps.input
{ time -p mpirun --allow-run-as-root -mca pml ucx -mca btl ^vader,tcp,openib,uct -x UCX_TLS=self,sm --bind-to core --map-by socket --rank-by core -x UCX_BUILTIN_ALLREDUCE_ALGORITHM=8 -np 128 arps_mpi ../input/arps.input arps.output ; } 2>&1 | tee -a arps_mpi_128.log
-np参数为使用的总进程数。
vi arps.log
或
vi arps_mpi_128.log
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG real 11.96 user 1195.39 sys 145.14