Changes between Version 18 and Version 19 of discovery
- Timestamp:
- 05/12/23 11:52:59 (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
discovery
v18 v19 30 30 }}} 31 31 with 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 #!sh40 $your_localhost% ssh-keygen -t rsa41 Generating public/private rsa key pair.42 Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN43 Enter passphrase (empty for no passphrase):RETURN44 Enter same passphrase again:RETURN45 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 #!sh53 $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 #!sh60 $your_remotehost%cat ~/id_rsa.pub >> ~/.ssh/authorized_keys61 $your_remotehost%rm ~/id_rsa.pub62 }}}63 64 65 32 66 33 == Environment == … … 88 55 89 56 Discovery 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.1 7(use the discovery script)57 - PETSc 3.19 (use the discovery script) 91 58 - m1qn3 92 59 Follow the detailed instructions for compiling ISSM: [[https://issm.jpl.nasa.gov/download/unix/]] … … 107 74 --with-mumps-dir="$ISSM_DIR/externalpackages/petsc/install" \ 108 75 --with-scalapack-dir="$ISSM_DIR/externalpackages/petsc/install" \ 109 --with-cxxoptflags="-g -O 3-std=c++11" \76 --with-cxxoptflags="-g -O2 -std=c++11" \ 110 77 --enable-development 111 78 }}} … … 122 89 * codipack 123 90 * medipack 124 * gsl (optional)125 91 126 92 Use the following configuration script (adapt to your needs, make sure to NOT include --with-petsc-dir): 127 93 {{{ 128 94 #!sh 129 export CFLAGS="-g -O0"130 export CXXFLAGS="-g -O0"131 95 ./configure \ 132 96 --prefix=$ISSM_DIR \ … … 145 109 --with-codipack-dir="$ISSM_DIR/externalpackages/codipack/install" \ 146 110 --with-medipack-dir="$ISSM_DIR/externalpackages/medipack/install" \ 147 --with-cxxoptflags="-g -O 0-fPIC -std=c++11 -DCODI_ForcedInlines -wd2196" \111 --with-cxxoptflags="-g -O2 -fPIC -std=c++11 -DCODI_ForcedInlines -wd2196" \ 148 112 --enable-tape-alloc \ 149 113 --enable-development \ 150 114 --enable-debugging 151 115 }}} 116 152 117 == discovery_settings.m == 153 118