Changes between Initial Version and Version 1 of aci


Ignore:
Timestamp:
07/18/17 10:34:43 (8 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • aci

    v1 v1  
     1== Getting an account ==
     2
     3New users have to ask Byron
     4
     5== Password-less ssh ==
     6
     7
     8
     9== Environment ==
     10
     11Pleiades uses `csh` and not `bash`, add the following to your `~/.cshrc`:
     12{{{
     13#!sh
     14
     15#ISSM
     16setenv ISSM_DIR /home1/mmorligh/issm/trunk/
     17source $ISSM_DIR/etc/environment.csh
     18
     19#Packages
     20module load pkgsrc
     21module load comp-intel/2016.2.181
     22module load mpi-sgi/mpt
     23}}}
     24
     25And replace `ISSM_DIR` with your actual trunk. ''Log out and log back in'' to apply this change.
     26
     27== Installing ISSM on Pleiades ==
     28
     29Pleiades will ''only'' be used to run the code, you will use your local machine for pre and post processing, you will never use Pleiades' matlab. You can check out ISSM and install the following packages:
     30 - cmake
     31 - PETSc (use the pleiades script and ``follow`` the instructions, you will need to submit a job and compile PETSc manually, do not make test, it will not work on the cluster)
     32 - m1qn3
     33
     34For documentation of pleiades, see here: http://www.nas.nasa.gov/hecc/support/kb/
     35
     36Use the following configuration script (adapt to your needs):
     37
     38{{{
     39#!sh
     40./configure \
     41 --prefix=$ISSM_DIR \
     42 --with-wrappers=no \
     43 --with-petsc-dir="$ISSM_DIR/externalpackages/petsc/install" \
     44 --with-m1qn3-dir="$ISSM_DIR/externalpackages/m1qn3/install" \
     45 --with-mpi-include=" " \
     46 --with-mpi-libflags=" -lmpi" \
     47 --with-mkl-libflags="-L/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm " \
     48 --with-metis-dir="$ISSM_DIR/externalpackages/petsc/install" \
     49 --with-mumps-dir="$ISSM_DIR/externalpackages/petsc/install" \
     50 --with-scalapack-dir="$ISSM_DIR/externalpackages/petsc/install" \
     51 --with-cxxoptflags="-O3 -axAVX" \
     52 --with-fortran-lib="-L/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/compiler/lib/intel64/ -lifcore -lifport" \
     53 --with-vendor="intel-pleiades" \
     54 --enable-development
     55}}}
     56
     57== Installing ISSM on Pleiades with Dakota ==
     58
     59For Dakota to run, you you will still need to make autotools, cmake PETSc, and m1qn3.
     60
     61In addition, will need to build the external package:
     62 - boost, install-1.55-pleiades.sh
     63 - dakota, install-6.2-pleiades.sh
     64
     65Finally, add the following to your configuration script:
     66
     67{{{
     68 --with-boost-dir=$ISSM_DIR/externalpackages/boost/install \
     69 --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install \
     70}}}
     71
     72== pfe_settings.m ==
     73
     74You have to add a file in `$ISSM_DIR/src/m` entitled `pfe_settings.m` with your personal settings:
     75
     76{{{
     77#!m
     78cluster.login='mmorligh';
     79cluster.queue='devel';
     80cluster.codepath='/u/mmorligh/issm/trunk/bin';
     81cluster.executionpath='/u/mmorligh/issm/trunk/execution/';
     82cluster.grouplist='s1690';
     83}}}
     84
     85use 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=pfe()`
     86
     87Make sure your module list includes pkgsrc, comp-intel/2016.2.181, and mpi-sgi/mpt .
     88
     89== Running jobs on Pleiades ==
     90
     91On Pleiades, the more nodes and the longer the requested time, the more you will have to wait in the queue. So choose your settings wisely:
     92
     93 {{{
     94#!m
     95md.cluster=pfe('numnodes',8,'time',30,'processor','wes','queue','devel');
     96md.cluster.time=10;
     97}}}
     98
     99to 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.
     100
     101Now if you want to check the status of your job and the queue you are using, use this command:
     102
     103 {{{
     104#!sh
     105qstat -u USERNAME
     106}}}
     107
     108You can delete your job manually by typing:
     109
     110{{{
     111#!sh
     112qdel JOBID
     113}}}
     114
     115where 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.
     116
     117If 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:
     118
     119{{{
     120#!m
     121md=loadresultsfromcluster(md,'SOMETHING');
     122}}}