Open MPI 3 ignoring bashrc file on other hosts
I am running into a strange issue where my local bashrc file on my slave hosts is getting ignored. I did a local installation of Openfoam 17.2 and put in my bashrc file this line:
source ~/OpenFOAM-v1712/etc/bashrc When I run: mpirun -np 2 -hostfile machinefile hostname The output is: winc12 winc11 This shows mpirun is working as I expect. But when I do: mpirun -np 2 -hostfile machinefile which snappyHexMesh I get: /opt/software/amd64/OpenFOAM/OpenFOAM-4.1.0/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh /pmusers/user/OpenFOAM-v1712/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh Seems winc12 is not sourcing my .bashrc file. So the default openfoam 4.1 is getting picked up from the global bashrc profile. Any idea on a workaround? I would rather not have to pass every environment variable manually in the mpirun command. |
All times are GMT -4. The time now is 13:55. |