-
Notifications
You must be signed in to change notification settings - Fork 0
Installing Open MPI on OS X
-
Download the latest 64-bit compiled version of the Open MPI libraries for OS X ( version 1.8.3 ).
-
Copy the
openmpi...osx...tar.gzfile to the/shareddirectory (you will need to create this directory if it doesn't currently exist). -
cd to
/sharedand runsudo tar xvzf openmpi...osx...tar.gz
which extracts the Open MPI libraries to /shared/openmpi_64.
-
Test the MPI version of FDS by typing
fdsYou should see the version number of FDS with no errors.
-
Run FDS MPI cases using the command:
mpirun -np X fds fds_case.fdswhere
Xis the number of processors to use,fdsis the executable, andfds_case.fdsis the FDS case that you want to run. Note that you might need to add the location ofmpirun(/shared/openmpi_64/bin) to yourPATHto use thempiruncommand (if the FDS installer did not find the MPI distribution).
-
Install
Xcode(free from the Mac App Store), which includes the "Developer Tools". -
Install the "Command Line Tools" in
Xcode(Preferences > Downloads). -
Install the OS X Intel C, C++, and Fortran compilers.
-
Download and extract Open MPI.
-
cdto the directory that you extracted Open MPI to. -
Install Open MPI using the Intel compiler suite; configure and install using:
source /opt/intel/composerxe/bin/compilervars.sh intel64 ./configure --prefix /shared/openmpi_64 CC=icc CXX=icpc F77=ifort FC=ifort CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 make sudo make install -
Build FDS MPI OS X version from the repository:
cd FDS_Compilation/mpi_intel_osx_64 ./make_fds.sh -
Run FDS cases using the command:
mpirun -np X fds_mpi_executable fds_case.fdswhere
Xis the number of processors to use,fds_mpi_executableis the FDS MPI executable that was built in the above steps, andfds_case.fdsis the FDS case that you want to run. Note that you might need to add the location ofmpirun(/shared/openmpi_64/bin) to your PATH to use thempiruncommand.