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

Error Reported During Geant4 Parallel Module Compilation

Symptom

The error message "G4MPImanager.hh:117:9: error: 'MPI' does not name a type; did you mean 'M_PI'?" is displayed during Geant4 parallel module compilation.

Key Process and Cause Analysis

By default, g++ binding is disabled for Open MPI 4.0.1.

Conclusion and Solution

Recompile Open MPI 4.0.1 and add the --enable-mpi-cxx parameter when configuring Open MPI. For details, see Basic Environment Setup Guide > Setting Up the Environment for the Cluster Scenario > Installing Open MPI in the Kunpeng BoostKit for HPC Installation Guide (Open Source Components).