You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use a uenv, it first has to be pulled from the registry to local storage where you can access it.
154
165
For example, to use the `prgenv-gnu` uenv, use the uenv image pull command:
155
166
@@ -164,15 +175,7 @@ For example, to use the `prgenv-gnu` uenv, use the uenv image pull command:
164
175
> uenv image pull 3ea1945046d884ee
165
176
```
166
177
167
-
!!! note
168
-
In order to pull images, a local directory for storing the images must first be created, and you will receive an error message.
169
-
To create a repo in the default location, use the following command:
170
-
171
-
```terminal title="uenv image repo"
172
-
> uenv repo create
173
-
```
174
-
175
-
Some images can be large, over 10 GB, and it can take a while to download from the registry.
178
+
Some images can be large, over 10 GB, and it can take a while to download them from the registry.
176
179
177
180
To view all uenv that have been pulled, and are ready to use use the `uenv image ls` command:
178
181
@@ -196,7 +199,7 @@ To view all uenv that have been pulled, and are ready to use use the `uenv image
196
199
197
200
By default, uenv can be pulled by all users on a system, with no restrictions.
198
201
199
-
Some uenv are not available to all users, for example the `vasp` images are only available for users with a VASP license, who are added to the `vasp` group once then have provided CSCS with a copy of their license.
202
+
Some uenv are not available to all users, for example the `vasp` images are only available for users with a [VASP][ref-uenv-vasp] license, who are added to the `vasp` group once then have provided CSCS with a copy of their license.
200
203
201
204
To be able to pull such images a token that authorizes access must be provided.
202
205
Tokens are created by CSCS, and stored on SCRATCH in a file that only users who have access to the software can read.
@@ -213,13 +216,13 @@ Tokens are created by CSCS, and stored on SCRATCH in a file that only users who
213
216
As of March 2025, the only restricted software is VASP.
214
217
215
218
!!! note
216
-
Better token management is under development - tokens will be stored in a central location and be easier to use.
219
+
Better token management is under development - tokens will be stored in a central location and will be easier to use.
217
220
218
221
[](){#ref-uenv-start}
219
222
## Starting a uenv session
220
223
221
224
The `uenv start` command will start a new shell with one or more uenv images mounted.
222
-
This is very useful for interactive sessions, for example if you want to work in the terminal to compile an application, or set up a python virtual environment.
225
+
This is very useful for interactive sessions, for example if you want to work in the terminal to compile an application, or set up a Python virtual environment.
223
226
224
227
!!! example "start an interactive shell to compile an application"
225
228
Here we want to compile an MPI + CUDA application "affinity".
@@ -271,10 +274,10 @@ This is very useful for interactive sessions, for example if you want to work in
271
274
SHELL=`which zsh` uenv start ...
272
275
```
273
276
274
-
!!! warning "attention C Shell / tcsh users"
277
+
!!! warning "C Shell / tcsh users"
275
278
uenv is tested extensively with bash (the default shell), and zsh. C shell is not tested properly, and we won't make significant changes to uenv to maintain support for C shell.
276
279
277
-
If your are one of the handful of users using `tcsh` (c shell) and you want to use uenv, we strongly recommend creating a request at the [CSCS service desk](https://jira.cscs.ch/plugins/servlet/desk) to change to either bash or zsh as your default.
280
+
If your are one of the handful of users using `tcsh` (C shell) and you want to use uenv, we strongly recommend creating a request at the [CSCS service desk](https://jira.cscs.ch/plugins/servlet/desk) to change to either bash or zsh as your default.
278
281
279
282
The basic syntax of uenv start is `uenv start image` where `image` is the uenv to start.
280
283
The image can be a label, the hash/id of the uenv, or a file:
@@ -562,19 +565,18 @@ The command line tool can be installed from source, if you are working on a clus
562
565
563
566
Only follow these steps if you are advised to test out a new version (e.g. if it has a fix for an issues that you are encountering).
564
567
565
-
!!! example "manually installing uenv in the terminal"
566
-
```bash
567
-
git clone https://github.com/eth-cscs/uenv2.git
568
-
cd uenv2
568
+
```bash
569
+
git clone https://github.com/eth-cscs/uenv2.git
570
+
cd uenv2
569
571
570
-
# run the installation script.
571
-
# this will install uenv2 in $HOME/.local/$(uname -m)/
0 commit comments