.. _run_fasteddy: ************************** Running under NSF NCAR HPC ************************** These instructions will help users get started running FastEddy in the `NSF NCAR High Performance Computing (HPC) environment `_, using `Derecho `_ and `Casper `_. Compilation =========== The Makefile-based build system included here assumes deployment on the NSF NCAR HPCs. FastEddy requires a C-compiler, MPI, and CUDA. Currently, the default modules loaded at login suffice on Casper, however the :code:`cuda` module will need to be loaded on Derecho by running :code:`module load cuda`. 1. Download the source code from the `Releases `_ page and unpack the release in the desired location or clone the `repository `_ in the desired location. 2. Navigate to the **SRC/FEMAIN** directory. 3. To build the FastEddy executable run :code:`make` (optionally run :code:`make clean` first if appropriate). The :code:`FastEddy` executable will be located in the **SRC/FEMAIN** directory. To build on other HPC systems with NVIDIA GPUs, check for availability of the aformentioned modules/dependencies. Successful compilation may require modifications to shell environment variable include or library paths, or alternatively minor adjustments to the include or library flags in **SRC/FEMAIN/Makefile**. Example PBS job script for Casper ================================= Below is bash-based PBS job submission script for running the model on NSF NCAR's Casper machine. This example script, *fasteddy_pbs_script_casper.sh*, can be found in the **scripts/batch_jobs** subdirectory of the `GitHub FastEddy-model repository `_. The FastEddy code will write its output to an **output** directory. Please create an output directory, if one does not already exist, in the same location as this script. Casper Sample Script -------------------- .. note:: * Replace "" below with a valid Project Account. * Replace "" below with the location that contains the **FastEddy-model** directory from unpacking the release. * Replace "" below with the name of the example .in filename. For example, *Example01_NBL.in*, *Example02_CBL.in*, etc. .. literalinclude:: ../scripts/batch_jobs/fasteddy_pbs_script_casper.sh The code will produce an log file with the name *FastEddy.o* (for example, *FastEddy.o4960197*) in the current working directory. To submit the script for batch processing, run `qsub fasteddy_pbs_script_casper.sh`. Example PBS job script for Derecho ================================== Below is bash-based PBS job submission script for running the model on NSF NCAR's Derecho machine. This example script, *fasteddy_pbs_script_derecho.sh*, can be found in the **scripts/batch_jobs** subdirectory of the `GitHub FastEddy-model repository `_. The FastEddy code will write its output to an `output` directory. Please create an output directory, if one does not already exist, in the same location as this script. Derecho Sample Script --------------------- .. note:: * Replace "" below with a valid Project Account. * Replace "" below with the location that contains the `FastEddy-model` directory from unpacking the release. * Replace "" below with the name of the example .in filename. For example, Example01_NBL.in, Example02_CBL.in, etc. .. literalinclude:: ../scripts/batch_jobs/fasteddy_pbs_script_derecho.sh The code will produce an log file with the name *FastEddy.o* (for example, *FastEddy.o4960197*) in the current working directory. To submit the script for batch processing, run `qsub fasteddy_pbs_script_derecho.sh`.