Changes between Version 18 and Version 19 of discovery


Ignore:
Timestamp:
05/12/23 11:52:59 (22 months ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • discovery

    v18 v19  
    3030}}}
    3131with your NetID at `username` and the password for NetID to request a ticket for 7 days (or any time period you need), then you can use {{{ssh discovery}}} without entering a password.
    32 ----
    33 
    34 **The following might not be necessary**
    35 
    36 Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run.
    37 You need to have a SSH public/private key pair. If you do not, you can create a SSH public/private key pair by typing the following command and following the prompts (no passphrase necessary):
    38 {{{
    39 #!sh
    40 $your_localhost% ssh-keygen -t rsa
    41 Generating public/private rsa key pair.
    42 Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN
    43 Enter passphrase (empty for no passphrase):RETURN
    44 Enter same passphrase again:RETURN
    45 Your identification has been saved in /Users/username/.ssh/id_rsa.
    46 Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
    47 }}}
    48 
    49 Two files were created: your private key `/Users/username/.ssh/id_rsa`, and the public key `/Users/username/.ssh/id_rsa.pub`. The private key is read-only and only for you, it is used to decrypt all correspondence encrypted with the public key. The contents of the public key need to be copied to `~/.ssh/authorized_keys` on your Discovery account:
    50 
    51 {{{
    52 #!sh
    53 $your_localhost%scp ~/.ssh/id_rsa.pub username@your_remotehost:~
    54 }}}
    55 
    56 Now on Discovery, copy the content of id_rsa.pub:
    57 
    58 {{{
    59 #!sh
    60 $your_remotehost%cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
    61 $your_remotehost%rm ~/id_rsa.pub
    62 }}}
    63 
    64 
    6532
    6633== Environment ==
     
    8855
    8956Discovery will ''only'' be used to run the code, you will use your local machine for pre and post-processing, you will never use Discovery's MATLAB. You can check out ISSM and install the following packages:
    90  - PETSc 3.17 (use the discovery script)
     57 - PETSc 3.19 (use the discovery script)
    9158 - m1qn3
    9259Follow the detailed instructions for compiling ISSM: [[https://issm.jpl.nasa.gov/download/unix/]]
     
    10774   --with-mumps-dir="$ISSM_DIR/externalpackages/petsc/install" \
    10875   --with-scalapack-dir="$ISSM_DIR/externalpackages/petsc/install" \
    109    --with-cxxoptflags="-g -O3 -std=c++11" \
     76   --with-cxxoptflags="-g -O2 -std=c++11" \
    11077   --enable-development
    11178}}}
     
    12289 * codipack
    12390 * medipack
    124  * gsl (optional)
    12591
    12692Use the following configuration script (adapt to your needs, make sure to NOT include --with-petsc-dir):
    12793{{{
    12894#!sh
    129 export CFLAGS="-g -O0"
    130 export CXXFLAGS="-g -O0"
    13195./configure \
    13296   --prefix=$ISSM_DIR \
     
    145109   --with-codipack-dir="$ISSM_DIR/externalpackages/codipack/install" \
    146110   --with-medipack-dir="$ISSM_DIR/externalpackages/medipack/install" \
    147    --with-cxxoptflags="-g -O0 -fPIC -std=c++11 -DCODI_ForcedInlines -wd2196" \
     111   --with-cxxoptflags="-g -O2 -fPIC -std=c++11 -DCODI_ForcedInlines -wd2196" \
    148112   --enable-tape-alloc \
    149113   --enable-development \
    150114   --enable-debugging
    151115}}}
     116
    152117== discovery_settings.m ==
    153118