Cannot open configuration file /opt/openmpi/share/openmpi/mpicc-wrapper-data.txt
I have installed OpenFOAM and Openmpi under /opt/HPC-Apps/. I can load openmpi from module file and run "mpirun --version" successfully.
But when sourcing /opt/HPC-Apps/openfoam/OpenFOAM-v1806/etc/bashrc, got the below error "Cannot open configuration file /opt/openmpi/share/openmpi/mpicc-wrapper-data.txt". But I can run motorbike tutorial successfully. So my question is that: Why the bashrc load openmpi from "/opt/openmpi" instead of "/opt/HPC-Apps/openmpi"? How can I fix this if I really want to install openmpi under /opt/HPC-Apps? Thanks a lot! PS: 1. the console log is as follows: [op@hpcapp4 hpc]$ module load /opt/HPC-Apps/openmpi/1.10.7 [op@hpcapp4 hpc]$ mpirun --version mpirun (Open MPI) 1.10.7 Report bugs to http://www.open-mpi.org/community/help/ [op@hpcapp4 hpc]$ [op@hpcapp4 hpc]$ source /opt/HPC-Apps/openfoam/OpenFOAM-v1806/etc/bashrc Cannot open configuration file /opt/openmpi/share/openmpi/mpicc-wrapper-data.txt Error parsing data file mpicc: Not found 2. mpi configuration inside /opt/HPC-Apps/openfoam/OpenFOAM-v1806/etc/bashrc: export WM_MPLIB=SYSTEMOPENMPI |
The problem is resolved by adding OPAL_PREFIX to environment variables. See https://users.open-mpi.narkive.com/d...apper-data-txt.
|
All times are GMT -4. The time now is 15:33. |