使用多个节点运行WRF的时候无报错但中断
收藏回复举报
使用多个节点运行WRF的时候无报错但中断
t('forum.solved') 已解决
新人帖
发表于2024-01-07 10:41:48
0 查看

使用移植后的WRF进行48小时模拟。华为服务器是一个节点128个核,我使用2个节点128个核,或者1个节点128个核,都会在运行到第36小时的时候中断,但是如果我只调用1个节点64个核,就可以顺利跑完48小时模拟,请问一下有没有大神知道是什么原因?我mpirun的命令也试过2种,都是这个原因,下面是我的提交作业脚本:

#!/bin/sh

#申请计算资源

#DSUB -n wrf_test

#DSUB -A RDS_ENV

#DSUB --job_type cosched

#DSUB -N 2

#DSUB -R cpu=128

#DSUN -oo wrf.out.log

#DSUB -eo wrf.err.log

#加载环境变量

source /USERDATA/profession/chenjy/env_wrfda.sh

ulimit -m unlimited

ulimit -d unlimited

#生成hostfile

export HOSTFILE=./hostfile

rm -f $HOSTFILE

touch $HOSTFILE

cat ${CCS_ALLOC_FILE} | awk '{print $1}' > $HOSTFILE

#运行程序

# 第一种mpirun

time -p mpirun --mca plm_rsh_agent /opt/batch/agent/tools/dstart -n 256 -N 128 --hostfile ${HOSTFILE} -x OMP_PROC_BIND=close -bind-to core -mca pml ucx -mca btl ^vader,tcp,openib,uct -mca io romio321 -x OMP_NUM_THREADS=1 -x UCX_NET_DEVICES=mlx5_0:1 -x PATH -x LD_LIBRARY_PATH ./wrf.exe > run_wrf.log

# 第二种mpirun

  set MPI = /hpl/mpi/hmpi/ompi/bin

  set MPIRUN = $MPI/mpirun

  ( /usr/bin/time -p mpirun -np 256 real.exe )

本帖最后由 匿名用户2024/01/08 10:04:55 编辑

我要发帖子