Changes between Version 2 and Version 3 of sherlock


Ignore:
Timestamp:
09/24/19 14:31:13 (5 years ago)
Author:
wchu28
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sherlock

    v2 v3  
    66svn --username XXX --password XXX  checkout http://issm.ess.uci.edu/svn/issm/issm/trunk-jpl
    77
     8
     9
     10 == Installing ISSM on Sherlock  ==
     11You need to install the following packages in this exact sequence:
     12 - autotools (install.sh)
     13 - petsc (install-3.9-sherlock.sh)
     14 - m1qn3 (install.sh)
     15
     16Use the following configuration script (adapt to your needs):
     17
     18{{{
     19#!sh
     20./configure \
     21 --prefix=$ISSM_DIR \
     22 --with-wrappers=no \
     23 --with-kml=no \
     24 --with-bamg=no \
     25 --with-metis-dir=$ISSM_DIR/externalpackages/metis/install \
     26 --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
     27 --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
     28 --with-mpi-include="/data/apps/mpi/openmpi-1.8.3/gcc/4.8.3/include" \
     29 --with-mpi-libflags="-L/data/apps/mpi/openmpi-1.8.3/gcc/4.8.3/lib -lmpi_cxx -lmpi -lmpi_usempi" \
     30 --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
     31 --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/ \
     32 --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
     33 --with-numthreads=16 \
     34 --with-fortran-lib="-L/data/apps/gcc/4.7.3/lib64 -lgfortran" \
     35 --enable-debugging \
     36 --enable-development
     37}}}
     38
     39== sherlock_settings.m ==
     40
     41HPC staff ask that no "serious work" should be done on your home directory, you should create an execution directory as `/pub/$USERNAME/execution`.
     42
     43You have to add a file in `$ISSM_DIR/src/m` entitled `hpc_settings.m` with your personal settings on your local ism install:
     44
     45{{{
     46#!m
     47cluster.login='mmorligh';
     48cluster.port=8000;
     49cluster.queue='pub64';
     50cluster.codepath='/data/users/mmorligh/trunk-jpl/bin/';
     51cluster.executionpath='/data/users/mmorligh/trunk-jpl/execution/';
     52}}}
     53
     54use your username for the `login` and enter your code path and execution path. These settings will be picked up automatically by matlab when you do `md.cluster=hpc()`
     55
     56== Running jobs on Sherlock  ==
     57
     58On hpc, you can use up to 64 cores per node. The more nodes and the longer the requested time, the more you will have to wait in the queue. So choose your settings wisely:
     59
     60 {{{
     61#!m
     62md.cluster=sherlock('numnodes',1,'cpuspernode',8);
     63}}}
     64
     65The list of available queues is `'pub64','free64','free48','free*,pub64'` and `'free*'`.
     66
     67to have a job of 8 cores on one node. If the run lasts longer than 10 minutes, it will be killed and you will not be able to retrieve your results.
     68
     69Now if you want to check the status of your job and the queue you are using, type in the bash with the hpc session:
     70
     71 {{{
     72#!sh
     73qstat -u USERNAME
     74}}}
     75
     76You can delete your job manually by typing:
     77
     78{{{
     79#!sh
     80qdel JOBID
     81}}}
     82
     83where 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.
     84
     85If 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:
     86
     87{{{
     88#!m
     89md=loadresultsfromcluster(md,'SOMETHING');
     90}}}
     91
     92