Pleiades (NAS HECC)
Table of Contents
- Getting an Account
- Logging In
- Checking Out a Copy of the ISSM Code Repository
- Environment
- Installing ISSM
- Cluster Class Settings
- Running Jobs on Pleiades
Comprehensive information on access to and use of NASA Advanced Supercomputing (NAS) High-End Computing Capability (HECC).
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.
Logging In
Please refer to the following documentation pages to log into NAS systems and make subsequent logins more seamless:
- Logging Into NAS Systems for the First Time
- Setting Up Public Key Authentication
- Setting Up SSH Passthrough
- One-Step Connection Using Public Key and Passthrough
Checking Out a Copy of the ISSM Code Repository
Users should clone the ISSM code repository to their /nobackup/ directory where they have a lot more space than in their home directory.
Environment
Add the following to ~/.bashrc in order to set up the environment properly for compiling ISSM,
# Modules
module load mpi-hpe/mpt
module load comp-intel/2020.4.304
module load petsc/3.17.3_intel_mpt_py
# Compilers
export CC=mpicc
export CXX=mpicxx
export F77=mpif77
export MPICC_CC=icx
export MPICXX_CXX=icpx
export MPF90_F90=ifort
# 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. Then, run,
source ~/.bashrc
or log out and log back in to apply this change.
Note
If
~/.bashrcis not loaded when on login, add a new file,~/.bash_login, with the following content,if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
Installing ISSM
Important
ISSM and external packages should not be compiled on the Pleiades front end. Please refer to the NAS HECC knowledge base article ‘Reserving a Dedicated Compute Node’ for instructions on reserving and logging into a compute node for the purpose of compiling. Alternatively you can request an interactive node,
qsub -I -q devel -l select=1:ncpus=20:model=cas_ait -l walltime=0:20:00 -W group_list=s2013
Important
Do not install
mpichandpetsc. The MPI implementation (MPT) provided by HECC must be used. Pleiades will only be used to run solutions and the user’s local machine for pre- and post-processing.
Installing ISSM with Basic Capabilities
Clone the ISSM source code repository on GitHub and install the following packages:
- autotools install-linux.sh
- triangle install-linux.sh
Before configuring ISSM, run,
cd $ISSM_DIR
autoreconf -ivf
Then use the following configuring script (adapting it as needed),
export CFLAGS="-g -O3 -fp-model=precise"
export CXXFLAGS="-g -O3 -fp-model=precise -diag-disable=15009,10441,10121"
./configure \
--prefix="${ISSM_DIR}" \
--enable-development \
--enable-standalone-libraries \
--with-wrappers=no \
--with-mpi-include="${MPI_ROOT}/include" \
--with-mpi-libflags="-L${MPI_ROOT}/lib -lmpi" \
--with-fortran-lib="-L/nasa/intel/oneapi/compiler/2023.2.1/linux/compiler/lib/intel64_lin -lifcore -lifport -lgfortran" \
--with-mkl-libflags="-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_blacs_sgimpt_ilp64 -lmkl_scalapack_ilp64 -lmkl_core -lpthread -lm" \
--with-petsc-dir=${PETSC_DIR} \
--with-parmetis-dir=${PETSC_DIR} \
--with-metis-dir=${PETSC_DIR} \
--with-mumps-dir=${PETSC_DIR} \
--with-triangle-dir="${ISSM_DIR}/externalpackages/triangle/install"
If you want MATLAB for ice-ocean coupling you will need to remove --with-wrappers=no and add --with-matlab-dir="/nasa/matlab/2024a".
Danger
Everything below needs to be updated to reflect the OS upgrade.
Installing ISSM with Dakota (NEEDS TO BE UPDATED)
For an installation of ISSM with Dakota, the following external packages are required:
- autotools install-linux.sh
- boost install-1.7-linux.sh
- dakota install-6.2-pleiades.sh
- chaco install-linux.sh
- triangle install-linux.sh
Then use the following configuring script (adapting it as needed),
export CFLAGS="-g -Ofast"
export CXXFLAGS="-g -Ofast -xCORE-AVX512,CORE-AVX2 -xAVX -std=c++11"
./configure \
--prefix="${ISSM_DIR}" \
--enable-development \
--enable-standalone-libraries \
--with-wrappers=no \
--with-mpi-include="${MPI_ROOT}/include" \
--with-mpi-libflags="-L${MPI_ROOT}/lib -lmpi" \
--with-fortran-lib="-L${COMP_INTEL_ROOT}/compiler/lib/intel64_lin -lifcore -lifport -lgfortran" \
--with-mkl-libflags="-L${COMP_INTEL_ROOT}/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" \
--with-blas-lapack-lib="-L${COMP_INTEL_ROOT}/mkl/lib/intel64 -lmkl_blas95_lp64 -lmkl_lapack95_lp64" \
--with-metis-dir="${PETSC_DIR}" \
--with-parmetis-dir="${PETSC_DIR}" \
--with-scalapack-lib="-L${COMP_INTEL_ROOT}/mkl/lib/intel64/libmkl_scalapack_lp64.so" \
--with-mumps-dir="${PETSC_DIR}" \
--with-petsc-dir="${PETSC_DIR}" \
--with-boost-dir="${ISSM_DIR}/externalpackages/boost/install" \
--with-dakota-dir="${ISSM_DIR}/externalpackages/dakota/install" \
--with-chaco-dir="${ISSM_DIR}/externalpackages/chaco/install" \
--with-triangle-dir="${ISSM_DIR}/externalpackages/triangle/install"
Installing ISSM with Solid Earth Capabilities (NEEDS TO BE UPDATED)
For an installation of ISSM with solid Earth capabilities, the following external packages are required:
- autotools install-linux.sh
- boost install-1.7-linux.sh
- dakota install-6.2-pleiades.sh
- chaco install-linux.sh
- zlib install-1.sh
- hdf5 install-1.sh
- netcdf install-4.sh
- sqlite install.sh
- proj install-6.sh
- gdal install-3-linux.sh
- gshhg install.sh
- gmt install-6-pleiades.sh
- gmsh install-4-pleiades.sh
- triangle install-linux.sh
Then use the following configuring script (adapting it as needed),
export CFLAGS="-g -Ofast"
export CXXFLAGS="-g -Ofast -xCORE-AVX512,CORE-AVX2 -xAVX -std=c++11"
./configure \
--prefix="${ISSM_DIR}" \
--enable-development \
--enable-standalone-libraries \
--with-wrappers=no \
--with-mpi-include="${MPI_ROOT}/include" \
--with-mpi-libflags="-L${MPI_ROOT}/lib -lmpi" \
--with-fortran-lib="-L${COMP_INTEL_ROOT}/compiler/lib/intel64_lin -lifcore -lifport -lgfortran" \
--with-mkl-libflags="-L${COMP_INTEL_ROOT}/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" \
--with-blas-lapack-lib="-L${COMP_INTEL_ROOT}/mkl/lib/intel64 -lmkl_blas95_lp64 -lmkl_lapack95_lp64" \
--with-metis-dir="${PETSC_DIR}" \
--with-parmetis-dir="${PETSC_DIR}" \
--with-scalapack-lib="-L${COMP_INTEL_ROOT}/mkl/lib/intel64/libmkl_scalapack_lp64.so" \
--with-mumps-dir="${PETSC_DIR}" \
--with-hdf5-dir="${ISSM_DIR}/externalpackages/hdf5/install" \
--with-petsc-dir="${PETSC_DIR}" \
--with-boost-dir="${ISSM_DIR}/externalpackages/boost/install" \
--with-dakota-dir="${ISSM_DIR}/externalpackages/dakota/install" \
--with-chaco-dir="${ISSM_DIR}/externalpackages/chaco/install" \
--with-proj-dir="${ISSM_DIR}/externalpackages/proj/install" \
--with-triangle-dir="${ISSM_DIR}/externalpackages/triangle/install"
Installing ISSM with MITgcm coupling
You will need to use the same modules and compilers as MITgcm (which only runs on Electra, not Aitken). Change your environment to:
# Load modules
module load python3/3.9.12
module load comp-intel mpi-hpe
module load hdf4/4.2.12 hdf5/1.8.18_mpt netcdf/4.4.1.1_mpt
module load matlab
# Compilers
export LANG=C
export LC_ALL=C
# 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.
You will need the following external packages: autotools install-linux.sh petsc install-3.26-pleiades.sh triangle install-pleiades.sh
Then use the following configuring script (adapting it as needed),
./configure \
--prefix="${ISSM_DIR}" \
--enable-development \
--with-mpi-include="${MPI_ROOT}/include" \
--with-mpi-libflags="-L${MPI_ROOT}/lib -lmpi" \
--with-petsc-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-parmetis-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-blas-lapack-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-scalapack-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-metis-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-mumps-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-triangle-dir="${ISSM_DIR}/externalpackages/triangle/install"
Installing ISSM with CoDiPack (NEEDS TO BE UPDATED)
For an installation of ISSM with CoDiPack, the following external packages are required:
- autotools install-linux.sh
- codipack install.sh
- medipack install.sh
Then use the following configuring script (adapting it as needed),
export CFLAGS="-g -Ofast -wd2196"
export CXXFLAGS="-g -Ofast -xCORE-AVX512,CORE-AVX2 -xAVX -std=c++11"
./configure \
--prefix="${ISSM_DIR}" \
--enable-development \
--enable-standalone-libraries \
--enable-tape-alloc \
--with-wrappers=no \
--without-kriging \
--without-kml \
--without-Sealevelchange \
--without-Love \
--with-mpi-include="${MPI_ROOT}/include" \
--with-mpi-libflags="-L${MPI_ROOT}/lib -lmpi" \
--with-fortran-lib="-L${COMP_INTEL_ROOT}/compiler/lib/intel64_lin -lifcore -lifport -lgfortran" \
--with-mkl-libflags="-L${COMP_INTEL_ROOT}/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" \
--with-metis-dir="${PETSC_DIR}" \
--with-parmetis-dir="${PETSC_DIR}" \
--with-mumps-dir="${PETSC_DIR}" \
--with-codipack-lib="${ISSM_DIR}/externalpackages/codipack/install" \
--with-medipack-lib="${ISSM_DIR}/externalpackages/medipack/install"
Cluster Class Settings
In order to connect to Pleiades 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.queue='devel';
cluster.codepath='<PATH_TO_ISSM_ON_CLUSTER>/bin/';
cluster.executionpath='<PATH_TO_ISSM_ON_CLUSTER>/execution/';
cluster.grouplist='s5692';
cluster.port=1099;
cluster.modules={'mpi-hpe/mpt' 'comp-intel/2020.4.304' 'petsc/3.17.3_intel_mpt_py'};
Create file $ISSM_DIR/src/py/pfe_settings.py, which might include,
def pfe_settings(md):
md.cluster.login='<USERNAME>'
md.cluster.queue='devel'
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
md.cluster.modules=['mpi-hpe/mpt', 'comp-intel/2020.4.304', 'petsc/3.17.3_intel_mpt_py']
return md
cluster.loginshould be set to your NAS usernamecluster.codepathshould be set to thebindirectory of the installation of ISSM on Pleiades that you wish to use (should be a subdirectory of/nobackup/<USERNAME>/)cluster.executionpathshould be set to where the job should be run on Pleiades (should not be you home directory due to disk use quotas; consider using subdirectory of/nobackup/<USERNAME>/)cluster.grouplistshould be set to the result of runninggroups <USERNAME>on Pleiades, where<USERNAME>is your NAS usernamecluster.modulesshould include the same modules that we set above in the ‘Environment’ step for compiling ISSM
These settings will be picked up automatically when you run md.cluster=pfe().
Running Jobs on Pleiades
On Pleiades, the more nodes and time requested, the longer your job will have to wait in the queue, so choose your settings accordingly. For example,
md.cluster=pfe('numnodes',1,'time',28,'processor','bro','queue','devel');
md.cluster.time=10;
md.cluster=pfe('numnodes',1,'time',28,'processor','bro','queue','devel')
md.cluster.time=10
will request a maximum job time of 10 minutes and one Broadwell node. If the run lasts more than 10 minutes, it will be killed and you will not be able to retrieve your results.
For more information on the available processor types, please refer to the NAS HECC knowledge base article ‘Pleiades Configuration Details’.
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