---
title: 推荐命令
description: "在调用Hyper MPI运行应用时，可能会同时调用Allreduce、Bcast、Barrier、Alltoallv、Allgatherv、Gatherv和Scatterv操作，此时的推荐算法命令示例如下（鲲鹏芯片）："
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/userg_huaweimpi_0018.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/userg_huaweimpi_0018.html
indexId: d930e2c57bc18a71307463a224f25108220c4cf4494c4368c348b6d7695a2b0366
---
# 推荐命令

在调用Hyper MPI运行应用时，可能会同时调用Allreduce、Bcast、Barrier、Alltoallv、Allgatherv、Gatherv和Scatterv操作，此时的推荐算法命令示例如下（鲲鹏芯片）：

mpirun -np 16 -N 2 --hostfile hf --mca btl ^vader,tcp,openib --map-by socket --rank-by core --bind-to core -x UCX_TLS=sm,rc_x -x UCG_PLANC_UCX_BCAST_ATTR=I:3 -x UCG_PLANC_UCX_ALLREDUCE_ATTR=I:6 -x UCG_PLANC_UCX_BARRIER_ATTR=I:5S:200R:0 -x UCG_PLANC_UCX_ALLGATHERV_ATTR=I:5S:200R:0 -x UCG_PLANC_UCX_GATHERV_ATTR=I:2 -x UCG_PLANC_UCX_SCATTERV_ATTR=I:1 -x UCG_PLANC_UCX_ALLTOALLV_ATTR=I:1 test_case
