问题描述:
ubuntu 16.04服务器下安装好openmpi-1.6.5后,测试 mpirun -np 4 hello_c
成功;又安装了eman2(依赖conda环境),再进行测试时,未成功
报错信息如下:
mpirun has detected an attempt to run as root.
Running as root is strongly discouraged as any mistake (e.g., in defining >TMPDIR) or bug can result in catastrophic damage to the OS file system, leaving your system in an unusable state.
We strongly suggest that you run mpirun as a non-root user.You can override this protection by adding the --allow-run-as-root option to your command line. However, we reiterate our strong advice against doing so - please do so at your own risk.
解决方法:
先退出 base 环境conda deactivate
,再运行mpirun -np 4 hello_c