Discover (NASA NCCS)
Table of Contents
- Getting an Account
- Environment
- Installing ISSM on Discover
- Installing ISSM on Discover with Dakota
- Cluster Class Settings
- Running Jobs on Discover
Comprehensive information on access to and use of NASA Center for Climate Simulation (NCCS) systems.
Getting an Account
New users will have to ask a NASA- or JPL-employed PI to request an account for them on NAS HECC. They will need the group ID of the PI in order to submit this request.
First, the PI should use the following procedure:
- navigate to the NAS HECC ‘Account Request System’ page
- select option ‘3. I want to request a NASA identity for one of my new users’
- provide the requested information
Then, the user needs to request an account with the following procedure:
- navigate to the NAS HECC ‘Account Request System’ page
- select option ‘2. I want to request and account for myself’
- provide the group ID for the PI that initiated the request
- the PI will then receive an email to approve the request
Note
All users must complete NASA’s Basic IT Security Training.
Then, an NCCS account has to be created by the new user:
- navigate to the NCCS website
- submit a NAMS request
- the PI will receive an email to approve the request
Environment
On Discover, add the following lines to ~/.bashrc,
# Load modules
module purge
module load comp/intel/2021.4.0
module load mpi/impi/2021.4.0
module load cmake/3.28.2
# ISSM
export ISSM_DIR=<PATH_TO_ISSM>
source $ISSM_DIR/etc/environment.sh
replacing <PATH_TO_ISSM> with the path to the directory that you cloned the ISSM source code repository to (note that this should be a subdirectory of /discover/nobackup/<USERNAME>/). Then, run,
source ~/.bashrc
or log out and log back in to apply this change.
Installing ISSM on Discover
Discover will only be used to run the code: you will use your local machine for pre- and post-processing; you will never use Discover’ MATLAB.
Clone the ISSM source code repository on GitHub and install the following packages:
- m1qn3
- PETSc (use the latest script for Discover)
Follow the detailed instructions for compiling ISSM on Linux, and use the following configuration script (adapt to your needs),
#!/bin/sh
export CXXFLAGS="-g -O3"
# Configure ISSM
./configure \
--prefix="${ISSM_DIR}" \
--enable-development \
--enable-debugging \
--without-wrappers \
--without-Love \
--without-kml \
--without-Sealevelchange \
--with-mpi-include="/usr/local/intel/oneapi/2021/mpi/2021.4.0/include" \
--with-mpi-libflags="-L/usr/local/intel/oneapi/2021/mpi/2021.4.0/lib -lmpicxx -lmpifort" \
--with-mkl-libflags="-L/usr/local/intel/oneapi/2021/mkl/2021.4.0/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" \
--with-m1qn3-dir="${ISSM_DIR}externalpackages/m1qn3/install" \
--with-metis-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-petsc-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-scalapack-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-mumps-dir="${ISSM_DIR}/externalpackages/petsc/install"
You can then make your configuration file executable (if it is not already) and execute it to compile and install ISSM,
chmod +x configure.sh
./configure.sh
make install
Installing ISSM on Discover with Dakota
For an installation of ISSM with Dakota, the following additional external packages are required:
- gsl install-static.sh
- boost install-1.55-discover.sh
- dakota install-6.2-discover.sh
- chaco install.sh
Then, you will need to add the following lines to your configuration script,
--with-dakota-dir="${ISSM_DIR}/externalpackages/dakota/install" \
--with-boost-dir="${ISSM_DIR}/externalpackages/boost/install" \
--with-chaco-dir="${ISSM_DIR}/externalpackages/chaco/install"
Cluster Class Settings
In order to connect to Discover from the machine that you are doing model setup and results analysis on, you will need to create a cluster class settings file for your chosen scripting interface.
Create file $ISSM_DIR/src/m/pfe_settings.m, which might include,
cluster.login='<USERNAME>';
cluster.name='discover.nccs.nasa.gov';
cluster.queue='nccs';
cluster.modules={'comp/intel/2021.4.0' 'mpi/impi/2021.4.0' 'cmake/3.28.2'};
cluster.codepath='<PATH_TO_ISSM_ON_CLUSTER>/bin';
cluster.executionpath='<PATH_TO_ISSM_ON_CLUSTER>/execution/';
cluster.grouplist='s5692';
cluster.port=1099;
Create file $ISSM_DIR/src/py/pfe_settings.py, which might include,
def pfe_settings(md):
md.cluster.login='<USERNAME>'
md.cluster.name='discover.nccs.nasa.gov'
md.cluster.queue='nccs'
md.cluster.modules=['comp/intel/2021.4.0', 'mpi/impi/2021.4.0', 'cmake/3.28.2']
md.cluster.codepath='<PATH_TO_ISSM_ON_CLUSTER>/bin'
md.cluster.executionpath='<PATH_TO_ISSM_ON_CLUSTER>/execution/'
md.cluster.grouplist='s5692'
md.cluster.port=1099
return md
replacing <USERNAME> with your Discover username and entering your code path and execution path (<PATH_TO_ISSM_ON_CLUSTER> should be in /cluster/work/users/<USERNAME>/). These settings will be picked up automatically when you run md.cluster=discover().
To determine your grouplist, on Discover run,
groups <USERNAME>
Make sure your modules list matches those set in ~/.bashrc on Discover.
Running Jobs on Discover
On Discover, the more nodes and time requested, the longer your job will have to wait in the queue, so choose your settings accordingly. For , use,
md.cluster=discover('numnodes',8,'time',30,'processor','west','queue','debug');
md.cluster.time=10;
md.cluster=discover('numnodes',8,'time',30,'processor','west','queue','debug')
md.cluster.time=10
to have a maximum job time of 10 minutes and 8 westmere nodes. If the run lasts longer than 10 minutes, it will be killed and you will not be able to retrieve your results.
More info about available queues on Discover.
If you want to check the status of your job and the queue that you are using, run,
qstat -u <USERNAME>
You can delete your job manually by typing,
qdel <JOB_ID>
where <JOB_ID> is the job ID reported on your local machine when you submitted your solution request. Also reported is the directory where you can find log files associated with the run (i.e. <JOB_ID>.outlog and <JOB_ID>.errlog). The outlog contains the information that would normally be printed to the console if you were running the job on your local machine. Likewise, the errlog contains any information printed in case of error.
If you would like to load results from the cluster manually (for example, if you encountered an error due to network disconnection), run,
md=loadresultsfromcluster(md,'runtimename','<EXEC_DIR>');
where <EXEC_DIR> is the parent of the job on your local machine, for example,
${ISSM_DIR}/execution/<EXEC_DIR>/<JOB_ID>.lock