Skip to content

Commit bda9cfe

Browse files
authored
Merge pull request #14366 from rmcdermo/master
FDS User Guide: edit macOS section on running FDS
2 parents ac3af01 + 37541ca commit bda9cfe

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

Manuals/FDS_User_Guide/FDS_User_Guide.tex

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,36 @@ \subsection{Multiple Computers Running MS Windows}
467467
\end{enumerate}
468468

469469

470+
\subsection{macOS}
470471

471-
\subsection{Linux and macOS}
472+
To run a single core FDS job on macOS, cd to the working directory and simply type:
473+
\begin{lstlisting}
474+
fds job_name.fds
475+
\end{lstlisting}
476+
477+
Mac systems tend to be single machines, but may have several cores to utilize. It may be helpful to use the OpenMP version of the code that is provided in the distribution. To run FDS on macOS with OpenMP do the following:
478+
\begin{lstlisting}
479+
export OMP_NUM_THREADS=4 # may be set in ~/.bash_profile as well
480+
fds_openmp job_name.fds
481+
\end{lstlisting}
482+
483+
Even if you have only one machine, you may use the cores for MPI (distributed) parallel computing. You can map one or more meshes to a given MPI process or rank. On macOS, without OpenMP (one core per MPI process), run a four process job like this:
484+
\begin{lstlisting}
485+
mpiexec -n 4 fds job_name.fds
486+
\end{lstlisting}
487+
488+
To utilize MPI and OpenMP together (4 MPI ranks with 4 OpenMP threads each, requiring 16 total cores) on macOS do:
489+
\begin{lstlisting}
490+
export OMP_NUM_THREADS=4
491+
mpiexec -n 4 fds_openmp job_name.fds
492+
\end{lstlisting}
493+
or
494+
\begin{lstlisting}
495+
mpiexec -n 4 -x OMP_NUM_THREADS=4 fds_openmp job_name.fds
496+
\end{lstlisting}
497+
498+
499+
\subsection{Linux}
472500

473501
A compute cluster that consists of a rack of dedicated compute nodes usually runs one of several variants of the Linux operating system. In such an environment, it is suggested, or required, that you use a job scheduler like PBS/Torque or Slurm to submit jobs by writing a short script that includes the command that launches the job, the amount of resources you require, and so on. Tips for running FDS under Linux or macOS can be found \href{https://github.com/firemodels/fds/wiki/Installing-and-Running-FDS-on-a-Linux-Cluster}{here}.
474502

0 commit comments

Comments
 (0)