Skip to content

Commit 21a71cc

Browse files
committed
document keyword arguments
1 parent a810f75 commit 21a71cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ Details are given in the following two subsections.
6666

6767
The `juhpc` bash script is called as follows:
6868
```bash
69-
juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR [$JUHPC_POST_INSTALL_JL]
69+
juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR [--postinstall=<julia-script>] [--verbose=<value>]
7070
```
71-
I.e., it takes the following arguments:
71+
I.e., it takes the following positional arguments:
7272
- `JUHPC_SETUP_INSTALLDIR`: the folder into which the HPC setup is installed, e.g., `"$SCRATCH/../julia/${HOSTNAME%%-*}/juhpc_setup"`.
7373
- `JULIAUP_INSTALLDIR`: the folder into which Juliaup and Julia will automatically be installed the first time the end user calls `juliaup`. *User environment variables should be escaped* in order not to have them expanded during HPC setup installation, but during its usage by the end user, e.g., `"\$SCRATCH/../julia/\$USER/\${HOSTNAME%%-*}/juliaup"`.
74-
- `JUHPC_POST_INSTALL_JL` (optional): site-specific post installation Julia script, using the project where preferences were set (e.g, to modify preferences or to create an uenv view equivalent to the activation script).
7574

7675
> [!NOTE]
7776
> The above examples assume that `$SCRATCH/../julia` is a wipe out protected folder on scratch.
7877
7978
> [!IMPORTANT]
8079
> Separate installation by `HOSTNAME` is required if different hosts with different architectures share the file system used for installation (e.g., daint and eiger on ALPS).
8180
82-
> [!TIP]
83-
> Export `JUHPC_VERBOSE=1` or `JUHPC_VERBOSE=2` to increase the verbosity of the output during the HPC setup installation: if set to `1`, the generated preferences and environment variables are printed; if set to `2`, all the output of all commands is printed in addition (default verbosity is `0`). No matter which verbosity level is set, all output is written in to a log file (`"$JUHPC_SETUP_INSTALLDIR/setup_install.log"`).
81+
Furthermore, it supports the following keyword argument:
82+
- `--postinstall=<julia-script>`: site-specific post installation Julia script, using the project where preferences were set (e.g, to modify preferences or to create an uenv view equivalent to the activation script).
83+
- `--verbose=<value>`: verbosity of the output during the HPC setup installation: if set to `1`, the generated HPC package preferences and environment variables are printed; if set to `2`, all the output of all commands is printed in addition for debugging purposes (default verbosity is `0`). No matter which verbosity level is set, all output is written in to a log file (`"$JUHPC_SETUP_INSTALLDIR/hpc_setup_install.log"`).
8484

8585

8686
## Examples: HPC setup installations on the ALPS supercomputer (CSCS)

0 commit comments

Comments
 (0)