MITgcm configs: Difference between revisions

From Fluids Wiki
Jump to navigation Jump to search
mNo edit summary
(Rewrite to stop referring to config files that are stored in this wiki. The latest ones are in the UW git repo. Explain a bit better what they're for and how they get used.)
 
Line 1: Line 1:
== MITgcm Configuration Files ==
== MITgcm Configuration Files ==


The [https://wiki.math.uwaterloo.ca/sheets/FluidsWiki/MITgcm/Compiling/makempi.sh makempi] script is designed to set the appropriate flags and load modules in order to compile MITgcm on: orca, graham, hood, and the mountain lakes (bow, minnewanka, waterton).
The MITgcm source code needs to be compiled with settings appropriate for whichever platform it will be run on.
Calling it should run through the steps to compile MITgcm.
Each platform has a corresponding configuration file.  These configuration files are included in the MITgcm bundle you pull
These should be placed in <code>/path/to/MITgcm/tools/build_options</code>.
from the UW git repository. You'll see them under <code>/path/to/MITgcm/tools/build_options/</code>. The file names reflect
the hostnames of the servers.


You can get a [https://wiki.math.uwaterloo.ca/sheets/FluidsWiki/MITgcm/Compiling/MITgcm_compiler_scripts.tar tarball of all of these file].
The <code>makempi.sh</code> script uses these configuration files and sets appropriate flags and load modules in order to compile MITgcm on the Fluids Group's servers and on Compute Canada (a.k.a. The Alliance) servers.
 
=== Configuration Files ===
* [https://wiki.math.uwaterloo.ca/sheets/FluidsWiki/MITgcm/Compiling/bow_mpt bow, minnewanka, waterton]
** this configuration file expects the SGI MPT module and GNU compilers
** be sure to specify '''-mpi''' on your '''genmake2''' command line
* [https://wiki.math.uwaterloo.ca/sheets/FluidsWiki/MITgcm/Compiling/orca_mpi orca]
* [https://wiki.math.uwaterloo.ca/sheets/FluidsWiki/MITgcm/Compiling/graham_mpi graham]
** You may receive a timeout error while running the build script on graham. If that happens, you only need to re-run the <code>make -j 16</code> command, not the whole script. You may need to do this multiple times.
* [https://wiki.math.uwaterloo.ca/sheets/FluidsWiki/MITgcm/Compiling/hood_mpi_intel hood]
 
=== Notes ===
 
Special thanks to Dunphy for these!
 
Orca is slated to be changed to appear Graham-like. When that happens, the orca compile flags given here will not work.

Latest revision as of 15:08, 13 May 2024

MITgcm Configuration Files

The MITgcm source code needs to be compiled with settings appropriate for whichever platform it will be run on. Each platform has a corresponding configuration file. These configuration files are included in the MITgcm bundle you pull from the UW git repository. You'll see them under /path/to/MITgcm/tools/build_options/. The file names reflect the hostnames of the servers.

The makempi.sh script uses these configuration files and sets appropriate flags and load modules in order to compile MITgcm on the Fluids Group's servers and on Compute Canada (a.k.a. The Alliance) servers.