我要评分
获取效率
正确性
完整性
易理解

An Error Is Reported When Running MPI as the Root User

Symptom

When you run the test.sh script, the following error information is displayed:

Key Process and Cause Analysis

To run MPI as the root user, add --allow-run-as-root.

Conclusion and Solution

Add --allow-run-as-root to mpirun in the script.