Skip to content

Commit c9e4121

Browse files
authored
First adaptations-WIP
1 parent 3cc830e commit c9e4121

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

source/leuven/services/openondemand.rst

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Open OnDemand is available for the Tier-2 Genius and wICE clusters.
1515

1616
You can use this interface by navigating to the `KU Leuven Open OnDemand page`_.
1717
You can log in using your KU Leuven or VSC credentials.
18-
Access is only granted to VSC3 users at the moment.
19-
Once logged in, you'll notice you are connected with your VSC account.
2018

2119
Use
2220
===
@@ -28,7 +26,7 @@ The KU Leuven Open OnDemand page provides a range of functions:
2826
- Opening a shell on one of the login nodes
2927
- Using interactive apps
3028

31-
All of these functionalities can be used by accessing them through the tabs at the top of the page. In the following, we will describe the different parts in
29+
All of these functionalities can be used by accessing them through the tabs at the top of the page. In the following, we will describe these different parts in
3230
some more detail.
3331

3432
Files
@@ -38,7 +36,7 @@ This menu provides a file explorer that allows you to navigate files by clicking
3836
available here. General file explorer options like moving, deleting, modifying and creating files or directories are available as well. You can also use this interface
3937
to download and upload files to and from your local machine. Be aware that this is not recommended for very large files.
4038

41-
**Good to know:** the standard 'ctrl+s' sadly does not store your files on Open OnDemand, but will trigger a save on your local machine. Luckily, there is a quite
39+
**Good to know:** the standard 'ctrl+s' does not store your files on Open OnDemand, but will trigger a save on your local machine. Luckily, there is a quite
4240
obvious save button on the editor page.
4341

4442
Jobs
@@ -54,7 +52,7 @@ The jobs tab has two menus: 'Active Jobs' and 'Job Composer':
5452
Active jobs
5553
-----------
5654

57-
This lists all of your running, queued and completed jobs.
55+
This lists all your running, queued and completed jobs.
5856
Completed jobs will disappear after a couple of minutes.
5957
You have a handy overview of some job details by clicking the large arrow next
6058
to the job id, including things like the node list, the account you used, and
@@ -76,7 +74,7 @@ Templates
7674
~~~~~~~~~
7775

7876
To enter the Templates menu, you can click on 'Templates' at the top once you are in the 'Job Composer' menu. You can also access this menu by clicking the button 'New
79-
Job'-'From Template'. Once in this menu, you should see a table with 3 System Templates. The resources that are requested in these scripts are the default settings.
77+
Job'-'From Template'. Once in this menu, you should see a table with three System Templates. The resources that are requested in these scripts are the default settings.
8078
The templates:
8179

8280
- CPU job template: a template for jobs on the thin nodes (the default ``batch`` partition). This is also the default template (which you will get when clicking 'From Default Template' under the 'New Job' button in the 'Jobs' menu).
@@ -86,11 +84,12 @@ The templates:
8684
You can create your own templates from scratch or by copying one of the existing templates.
8785
In both cases you will be redirected to a page where you can provide a
8886
name, the cluster and add some notes.
89-
Once you save this, you will create a new folder in the templates folder
90-
``$VSC_DATA/ondemand/data/sys/myjobs/templates/``.
91-
This information will be saved in the ``manifest.yml`` file that is always present
92-
in each of the template folders.
93-
Which other files will be present in this folder depends on how you created your new template.
87+
To save this, you will need to provide a path to store it in. Ondemand will create a new subdirectory in the path you provided
88+
with the name of your template.
89+
90+
**UPDATE AFTER FIX**
91+
A ``manifest.yml`` file will always be present in a template directory, It contains all the info your provided when setting
92+
up this template. Which other files will be present in this directory depends on how you created your new template.
9493
If you use the 'New Template' button, it will also contain the job
9594
script of the default template, being the CPU job template.
9695
If you use the 'Copy Template' button, the contents of the folder will depend on the
@@ -106,15 +105,17 @@ upload new files.
106105
These files will be present in each job you create from this template, which means you fully adapt this to the standard set-up you use for your
107106
jobs.
108107

108+
**UPDATE AFTER FIX**
109+
109110
Jobs
110111
~~~~
111112

112113
The functioning of creating jobs is a bit similar to how you create new templates.
113114
Whatever method you choose, you will create a new folder for each job, this time
114115
located at ``$VSC_DATA/ondemand/data/projects/default/``.
115-
The job folders will be numbered in the order you have created them.
116+
The job directories will be numbered in the order you have created them.
116117
**Do not change this folder name as long as you plan on using it from the job menus, as this will break the linking.**
117-
When removing a job, the folder will be deleted as well.
118+
**When removing a job, the directory will be deleted as well.**
118119

119120
To create a job, press the 'New Job' button and choose the option that best suits
120121
your needs.
@@ -169,7 +170,7 @@ is available in the next chapter.
169170
- Numbers of hours: your walltime (min 1h).
170171
- Number of cores: the amount of cores per node. This defaults to 1.
171172
- Required memory per core in megabytes. This defaults to 3400 MB.
172-
- Number of GPUs. If you request a GPU of the ``gpu`` partition you will get a full A100 GPU. For the ``interactive`` partition on wICE, every GPU is a virtual GPU slice of the available A100 GPUs. One GPU slice is the same as 1/7th of a A100 GPU. The default is 0. You can specify the type of GPU as well: [Type]:<number> (e.g. A100:2). You can also just request a number of GPUs as <number>. Then you will be appointed the first available GPU types. In practice, both methods are the same for now. This might change if we would decide to add extra GPU types. **The interactive partition only allows you to request max 1 GPU (slice) though.**
173+
- Number of GPUs. Depending on the partition you have requested, you might get a different GPU. For the Genius GPUs, the GPU will be the same as the type specified in the partition (e.g. a NVidia V100 for ``gpu_v100``). For wICE, you can request both a GPU from the ``gpu`` partion (a full NVidia A100) or from the ``interactive`` partition. For the latter, one GPU is a virtual GPU slice of the available A100 GPUs. One GPU slice is the same as 1/7th of a A100 GPU. The default is 0. You can specify the type of GPU as well: [Type]:<number> (e.g. A100:2). You can also just request a number of GPUs as <number>.**The interactive partition only allows you to request max 1 GPU (slice) though.**
173174
- Reservation: if you are part of a reservation, you can also use these nodes with Open Ondemand by specifying your reservation name here.
174175
- Pre-run scriptlet: this allows you to add bash commands to your job before launching the app. This can be used for example for loading extra modules that you need within the app. **Be aware that this feature is still somewhat experimental, and its functionality also depends on the app you are running (mainly RStudio Server has some issues here). If you would like to use this feature, but you run into problems, please contact our helpdesk.**
175176

@@ -183,7 +184,7 @@ Choosing your resources
183184
Choosing the correct resources for your interactive session is mostly the same as selecting them when launching regular batch jobs. For this reason we strongly
184185
recommend you to have a look at how to specify your resources both on `Genius <https://docs.vscentrum.be/en/latest/leuven/genius_quick_start.html#running-jobs-on-genius>`_ and `wICE <https://docs.vscentrum.be/en/latest/leuven/wice_quick_start.html#running-jobs-on-wice>`_.
185186

186-
As mentioned above, in most cases we recommend using the ``interactive`` partition on wICE for your interactive apps. This partition is meant for lighter work, like
187+
As mentioned above, in most cases we recommend using the ``interactive`` partition on wICE for the interactive apps. This partition is meant for lighter work, like
187188
visualisations, testing and pre- and postprocessing. Using this partition is also free, mainly to encourage you to request these resources for such work, instead
188189
of using any of the other partitions. There are however some limitations on the amount of resources you can request here:
189190

@@ -205,7 +206,7 @@ your presence to start your code.
205206
Interactive shell
206207
-----------------
207208

208-
This app will launch a shell on (one of the) requested nodes, allowing you to use these compute resources from within a Linux terminal. This is different
209+
This app will launch a shell on (one of) the requested node(s), allowing you to use these compute resources from within a Linux terminal. This is different
209210
than the shell you get in the "Clusters" menu, which directs you towards one of the login nodes.
210211

211212
Jupyter Lab
@@ -219,7 +220,7 @@ environments and their associated kernels, both the Python and R installation wi
219220
To create any other kernels, first create a `Python <https://docs.vscentrum.be/en/latest/software/python_package_management.html#create-an-environment>`_ or
220221
`R <https://docs.vscentrum.be/en/latest/software/r_package_management.html#creating-an-environment>`_ conda environment. The second step consists out of effectively
221222
creating the kernel in your ``$VSC_HOME/.local`` folder, as Jupyter will look for kernels in this location. The following commands should be excecuted from a shell,
222-
and only need to be done once for the set-up of each new kernel. This starts with first of all activating your conda
223+
and only need to be done once for the set-up of each new kernel. This starts with activating your conda
223224
environment::
224225

225226
source activate <env_name>
@@ -252,7 +253,7 @@ avoid clogging your ``$VSC_HOME``. You can do this by using the ``lib`` argument
252253

253254
**Remarks:**
254255

255-
- Navigating between your different directories is possible using the file explorer. If you are navigating by clicking the folder, you will notice that you can see all user folders. You do not have access to these, and you will receive an error when you try to open them. You will also notice that you cannot use the same way of navigating after this. Another solution is to click the three dots on the right (...) and enter your file location.
256+
- Navigating between your different directories is possible using the file explorer. If you are navigating by clicking the folder, you will notice that you can see all user folders. You do not have access to these, and you will receive an error when you try to open them. You will also notice that you cannot use the same way of navigating after this. Another solution is to click the three dots on the right (...) and enter your path.
256257
- The 'Tools-Install packages' interface does not allow you to select any other path than the default in your ``$VSC_HOME``. It is recommended to use the ``install.packages`` function instead.
257258
- RStudioServer will by default store the RStudio cache in ``$VSC_HOME/.local/share/rstudio``. This cache can get very large and cause you to exceed the quota of your home directory. To avoid this, you can redirect this cache to your data directory by setting ``$XDG_DATA_HOME`` variables in your ``~/.bashrc``.
258259

@@ -274,11 +275,11 @@ code-server
274275
This is the browser version of Visual Studio Code. For more information, check out `the official guidelines <https://code.visualstudio.com/docs>`_. As a default,
275276
a Python and a Git module are already loaded, which means you can use both Python and git from a terminal window within code-server. How to open a terminal
276277
window is probably one of the first things you should know: click on the three horizontal lines in the upper left corner, select 'Terminal - New Terminal'. This will
277-
open a shell on the node you are running your session on. Notice that you are start in your ``$VSC_DATA`` folder. You can use this as a regular shell, meaning that you
278+
open a shell on the node you are running your session on. Notice that you are starting in your ``$VSC_DATA`` directory. You can use this as a regular shell, meaning that you
278279
can submit jobs, load modules and so on.
279280

280281
Code-server contains many different options and menus, but only a few will be discussed here. Feel free to explore them. We will however discuss how to set up
281-
code-server to use, any of the compatible languages and use code-server as an IDE. For each of the languages you want to use you need two things: an installation of
282+
code-server to use any of the compatible languages and use code-server as an IDE. For each of the languages you want to use you need two things: an installation of
282283
the specific interpreter and an extension in code-server that allows you to connect to it. The extensions can be found in the 'extensions' menu. In what follows, the
283284
steps for both Python and R are described.
284285

0 commit comments

Comments
 (0)