--map-by hwthread参数运行结果为Not supported
现象描述
在x86环境中同时运行--map-by hwthread和--rank-by core参数时,导致Not supported错误。
$ mpirun --allow-run-as-root -np 16 -N 2 --hostfile ~/hmpifile_2021/hostfile/hf8 --map-by hwthread --rank-by core ~/hmpifile_2021/allreduce/AllReduce [x86-2:41196] [[10767,0],0] ORTE_ERROR_LOG: Not supported in file base/rmaps_base_ranking.c at line 592 [x86-2:41196] [[10767,0],0] ORTE_ERROR_LOG: Not supported in file base/odls_base_default_fns.c at line 632
可能原因
在x86环境中--map-by hwthread和--rank-by core参数之间有约束,不能同时使用。
恢复步骤
- 使用PuTTY工具,以Hyper MPI普通用户,如“hmpi_user”用户登录作业执行节点。
- 执行以下命令,规避--map-by hwthread和--rank-by core参数之间的约束。
mpirun --allow-run-as-root -np 16 -N 2 --hostfile ~/hmpifile_2021/hostfile/hf8 --map-by hwthread --rank-by slot ~/hmpifile_2021/allreduce/AllReduce
- ~/hmpifile_2021/hostfile:为指定作业运行节点的文件路径,用户可根据实际情况进行替换。
- hf8:为指定作业运行节点的文件,用户可根据实际情况对该文件名进行修改。
- ~/hmpifile_2021/allreduce:为指定运行作业的路径。
- AllReduce:为指定的运行作业,用户可根据实际情况进行修改。
请不要同时使用该两个参数,若需使用--map-by hwthread参数,请指定--rank-by slot参数。
父主题: FAQ