Changes between Initial Version and Version 1 of pleiadescsh


Ignore:
Timestamp:
04/26/17 11:13:21 (8 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pleiadescsh

    v1 v1  
     1== Getting an account ==
     2
     3New 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:
     4 - 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")
     5 - provide the information requested
     6
     7Then, a NAS account has to be created by the new user:
     8 - go to [https://www.nas.nasa.gov/hecc/portal/accounts] select option 2 ("I want to request and account for myself")
     9 - provide the information requested using either GID = s1690 for Eric's group or GID = s1507 for Mathieu's group
     10 - the PI will receive an email to approve the request
     11 - All users must complete NASA-mandatory Basic IT Security Training (This year's training is called "FY2016 CYBERSECURITY AND SENSITIVE UNCLASSIFIED INFORMATION AWARENESS TRAINING").
     12
     13== Password-less ssh ==
     14
     15Follow the steps outlined here [http://www.nas.nasa.gov/hecc/support/kb/Setting-Up-SSH-Passthrough_232.html]
     16
     17== Environment ==
     18
     19Pleiades uses `csh` and not `bash`, add the following to your `~/.cshrc`:
     20{{{
     21#!sh
     22
     23#ISSM
     24setenv ISSM_DIR /home1/mmorligh/issm/trunk/
     25source $ISSM_DIR/etc/environment.csh
     26
     27#Packages
     28module load comp-intel/2016.2.181
     29module load mpi-sgi/mpt
     30module load svn/1.6.21
     31module load cmake/2.8.12.1
     32}}}
     33
     34And replace `ISSM_DIR` with your actual trunk. ''Log out and log back in'' to apply this change.
     35
     36== Installing ISSM on Pleiades ==
     37
     38Pleiades 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:
     39 - autotools
     40 - 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)
     41 - m1qn3
     42
     43For documentation of pleiades, see here: http://www.nas.nasa.gov/hecc/support/kb/
     44
     45Use the following configuration script (adapt to your needs):
     46
     47{{{
     48#!sh
     49./configure \
     50 --prefix=$ISSM_DIR \
     51 --with-wrappers=no \
     52 --with-petsc-dir="$ISSM_DIR/externalpackages/petsc/install" \
     53 --with-m1qn3-dir="$ISSM_DIR/externalpackages/m1qn3/install" \
     54 --with-mpi-include=" " \
     55 --with-mpi-libflags=" -lmpi" \
     56 --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" \
     57 --with-metis-dir="$ISSM_DIR/externalpackages/petsc/install" \
     58 --with-mumps-dir="$ISSM_DIR/externalpackages/petsc/install" \
     59 --with-scalapack-dir="$ISSM_DIR/externalpackages/petsc/install" \
     60 --with-cxxoptflags="-O3 -axAVX" \
     61 --with-vendor="intel-pleiades"\
     62 --enable-development
     63}}}
     64
     65== Installing ISSM on Pleiades with Dakota ==
     66
     67For Dakota to run, you will need to have additional packages. Therefore, in your `~/.cshrc` you will need to load the following package in addition to those listed above:
     68
     69{{{
     70#Packages
     71module load math/intel_mkl_64_10.0.011
     72}}}
     73
     74
     75You will still need to make utotools, PETSc, and m1qn3.
     76For PETSc, use the dakota install script:
     77 - install-3.7-pleiades_dakota6.2.sh
     78
     79In addition, will also need to build the external package:
     80 - boost, install-1.55-pleiades_dakota6.2.sh
     81 - dakota, install-6.2-pleiades.sh
     82
     83Finally, add the following to your configuration script:
     84
     85{{{
     86 --with-boost-dir=$ISSM_DIR/externalpackages/boost/install \
     87 --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install \
     88}}}
     89
     90== pfe_settings.m ==
     91
     92You have to add a file in `$ISSM_DIR/src/m` entitled `pfe_settings.m` with your personal settings:
     93
     94{{{
     95#!m
     96cluster.login='mmorligh';
     97cluster.queue='devel';
     98cluster.codepath='/u/mmorligh/issm/trunk/bin';
     99cluster.executionpath='/u/mmorligh/issm/trunk/execution/';
     100cluster.grouplist='s1690';
     101}}}
     102
     103use 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()`
     104
     105For Dakota, make sure your module list includes math/intel_mkl_64_10.0.011 .
     106
     107== Running jobs on Pleiades ==
     108
     109On 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:
     110
     111 {{{
     112#!m
     113md.cluster=pfe('numnodes',8,'time',30,'processor','wes','queue','devel');
     114md.cluster.time=10;
     115}}}
     116
     117to 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.
     118
     119Now if you want to check the status of your job and the queue you are using, use this command:
     120
     121 {{{
     122#!sh
     123qstat -u USERNAME
     124}}}
     125
     126You can delete your job manually by typing:
     127
     128{{{
     129#!sh
     130qdel JOBID
     131}}}
     132
     133where 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.
     134
     135If 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:
     136
     137{{{
     138#!m
     139md=loadresultsfromcluster(md,'SOMETHING');
     140}}}