Changes between Initial Version and Version 1 of discover


Ignore:
Timestamp:
12/18/20 13:18:06 (4 years ago)
Author:
schlegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • discover

    v1 v1  
     1Note that this information is up to date as of ISSM trunk-jpl version 24100
     2
     3== Getting an account ==
     4
     5New users have to ask the PIs (Eric Larour or Mathieu Morlighem) to request a NASA account for them if they don't have one already:
     6 - go to [https://www.nas.nasa.gov/hecc/portal/accounts] select option 3 ("I want to request a NASA identity for one of my new users")
     7 - provide the information requested
     8
     9Then, a NCCS account has to be created by the new user:
     10 - go to [https://www.nccs.nasa.gov/nccs-users/instructional/account-set-up] and fill out a NAMS request
     11 - provide the information requested using either GID = s5692 for Eric's group or GID = s1507 for Mathieu's group
     12 - the PI will receive an email to approve the request
     13 - All users must complete NASA-mandatory Basic IT Security Training (This year's training is called "FY21 CYBERSECURITY AND SENSITIVE UNCLASSIFIED INFORMATION AWARENESS COURSE").
     14 - UCI IT Security officer: Josh Drummond jdrummon@uci.edu
     15 - JPL IT Security officer: Tomas Soderstrom Tomas.J.Soderstrom@jpl.nasa.gov
     16
     17== Environment ==
     18
     19Since you will be using `bash`, add the following to your `~/.bashrc`:
     20{{{
     21#ISSM
     22export ISSM_DIR="/u/jbondzio/ISSM/trunk-jpl"
     23source $ISSM_DIR/etc/environment.sh
     24
     25#Packages
     26module purge
     27module load comp/intel/20.0.0.166
     28module load mpi/sgi-mpt/2.17
     29module load cmake/3.17.0
     30module load cdo/1.9.9rc2
     31}}}
     32
     33And replace `ISSM_DIR` with your actual trunk. ''Log out and log back in'' to apply this change.
     34
     35== Installing ISSM on Discover ==
     36
     37'''Do NOT install mpich'''. We have to use the one provided by NCCS. You can check out ISSM and install the following packages:
     38 - m1qn3
     39 - PETSc (use `install-3.7-discover.sh` or newer)
     40
     41You will need to run the following command before configuring ISSM:
     42{{{
     43#!sh
     44cd $ISSM_DIR
     45autoreconf -ivf
     46}}}
     47
     48Use the following configuration script for ISSM (adapt to your needs):
     49
     50{{{
     51#!sh
     52./configure \
     53 --prefix=$ISSM_DIR \
     54 --with-matlab-dir=$MATLAB_DIR \
     55 --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
     56 --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
     57 --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
     58 --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
     59 --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install \
     60 --with-mpi-include="/usr/local/sgi/mpi/mpt-2.17/include" \
     61 --with-mpi-libflags="-L/usr/local/sgi/mpi/mpt-2.17/lib/ -lmpi -lmpi++" \
     62 --with-petsc-arch=$ISSM_ARCH \
     63 --with-mkl-libflags="-L/usr/local/intel/2020/compilers_and_libraries_2020.0.166/linux/compiler/lib/intel64/ -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" \
     64 --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
     65 --with-fortran-lib="-L/usr/local/intel/2020/compilers_and_libraries_2020.0.166/linux/compiler/lib/intel64/ -lifcore" \
     66 --with-cxxoptflags="-O3" \
     67 --with-vendor=intel-discover \
     68 --enable-development \
     69 --enable-debugging
     70}}}
     71
     72== Installing ISSM on Discover with Dakota ==
     73
     74For Dakota to run, you you will still need to make PETSc, and m1qn3.
     75
     76In addition, will need to build the external packages:
     77 - boost, install-1.55-discover.sh
     78 - dakota, install-6.2-intel20-discover.sh
     79
     80Finally, you will need to add the following lines to your configuration script:
     81
     82{{{
     83#!sh
     84 --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install \
     85 --with-boost-dir=$ISSM_DIR/externalpackages/boost/install \
     86}}}
     87
     88You have to add a file in `$ISSM_DIR/src/m` entitled `discover_settings.m` (on the machine you wish to access Discover) with your personal settings:
     89
     90{{{
     91#!m
     92cluster.login='mmorligh';
     93cluster.queue='nccs';
     94cluster.codepath='/home/mmorligh/issm/trunk/bin';
     95cluster.executionpath='/discover/nobackup/mmorligh/execution/';
     96cluster.grouplist='s5692';
     97cluster.port=1099;
     98}}}
     99
     100use your username for the `login` and enter your code path and execution path. Be sure to create the final execution directory (mkdir) within the nobackup folder. These settings will be picked up automatically by matlab when you do `md.cluster=discover()`. To determine your `grouplist`, on Discover run:
     101
     102{{{
     103%groups USERNAME
     104}}}
     105
     106Make sure your module list includes comp/intel/20.0.0.166, mpi/sgi-mpt/2.17, and cmake/3.17.0
     107
     108== Running jobs on Discover ==
     109
     110On Discover, the more nodes and the longer the requested time, the more you will have to wait in the queue. So choose your settings wisely:
     111
     112 {{{
     113#!m
     114md.cluster=discover('numnodes',8,'time',30,'processor','west','queue','debug');
     115md.cluster.time=10;
     116}}}
     117
     118to 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.
     119
     120Now if you want to check the status of your job and the queue you are using, use this command:
     121
     122 {{{
     123#!sh
     124qstat -u USERNAME
     125}}}
     126
     127You can delete your job manually by typing:
     128
     129{{{
     130#!sh
     131qdel JOBID
     132}}}
     133
     134where JOBID is the ID of your job (indicated in the Matlab session). Matlab indicates too the directory of your job where you can find the files `JOBNAME.outlog` and `JOBNAME.errlog`. The outlog file contains the informations that would appear if you were running your job on your local machine and the errlog file contains the error information in case the job encounters an error.
     135
     136If you want to load results from the cluster manually (for example if you have an error due to an internet interruption), you find in the informations Matlab gave you `/home/srebuffi/trunk-jpl/execution//SOMETHING/JOBNAME.lock `, you copy the SOMETHING and you type in Matlab:
     137
     138{{{
     139#!m
     140md=loadresultsfromcluster(md,'runtimename','SOMETHING');
     141}}}