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

# 以root用户运行MPI时报错

#### 问题现象描述

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


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

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


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

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