---
title: 以root用户运行MPI时报错
description: "运行test.sh脚本时，出现如下报错信息。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpenghhsuite_02_0011.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpenghhsuite_02_0011.html
indexId: 6a8836f3d418e2624783af834c19752c4ad68cc45c13cbed5afd4318d1f5bd4a69
---
# 以root用户运行MPI时报错

#### 问题现象描述

运行test.sh脚本时，出现如下报错信息。


#### 关键过程、根本原因分析

以root用户运行MPI需要加上“--allow-run-as-root”。


#### 结论、解决方案及效果

在脚本中“mpirun”后面加上“--allow-run-as-root”。
