-
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.gz
file to the/shared
directory (you will need to create this directory if it doesn't currently exist). -
cd to
/shared
and 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
fds
You should see the version number of FDS with no errors.
-
Run FDS MPI cases using the command:
mpirun -np X fds fds_case.fds
where
X
is the number of processors to use,fds
is the executable, andfds_case.fds
is the FDS case that you want to run. Note that you might need to add the location ofmpirun
(/shared/openmpi
_64/bin
) to yourPATH
to use thempirun
command (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.
-
cd
to 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.fds
where
X
is the number of processors to use,fds_mpi_executable
is the FDS MPI executable that was built in the above steps, andfds_case.fds
is 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 thempirun
command.