Storage
Each tenant provisioned for GPUs has its own storage, a shared directory of the size set by its provisioning. It is:
- mounted at
/datain every workload of the tenant; - reachable from your machine over sftp, through the SSH gateway
ssh.forge.epita.fr, at/gpuwl/<tenant slug>/.
There is no file browser in the portal: you upload inputs and fetch outputs with sftp. The Storage Access page shows the commands for each of your tenants, with your login and the path filled in.
Layout
| Path | Content |
|---|---|
outputs/<workload-id>/ | Created by the platform before each workload starts. Also in $GPUWL_OUTPUT_DIR. |
| Anything else | Up to you. We suggest datasets/ for inputs, scripts/ for code and scratch/ for temporary files. |
Files are never deleted by the platform, outputs included: clean up what you no longer need, the space is shared by the whole tenant.
Transferring files with sftp
The SSH gateway only accepts sftp: you cannot open a shell on it, and
rsync does not work. You sign in with your Forge login and the SSH key or
Kerberos ticket you use for the other CRI services.
1. Connect, from the folder on your machine that contains your files:
sftp xavier.login@ssh.forge.epita.fr:/gpuwl/my-tenant/
2. Transfer, at the sftp> prompt:
| To | Type |
|---|---|
Upload the local folder datasets/ | put -R datasets |
Upload the local folder scripts/ | put -R scripts |
Download every output into ./results | get -R outputs results |
| Download one workload's outputs | get -R outputs/<workload-id> results |
| List the remote directory | ls |
| Change the local directory | lcd <path> |
| Leave | exit |
Local paths are relative to the folder where you started sftp, remote paths to
the tenant's directory. put -R and get -R copy a folder and its content,
merging with what is already there.
Any sftp client works, e.g. FileZilla or WinSCP: use the SFTP protocol, host
ssh.forge.epita.fr, your login, and open /gpuwl/<tenant slug>/.
Permissions
The tenant's directory belongs to the Unix group of the tenant,
gpuwl-<tenant slug>, whose members are the users with GPU_WORKLOAD_MANAGE on
the tenant. Everything created inside, by a workload or over sftp, belongs to
this group, so that every member can read it.
-
Uploaded files keep the permissions they have on your machine. If the other members must be able to modify them, make them group-writable before uploading:
chmod -R g+rwX datasets scripts -
Your workloads run with your Unix groups, the tenant's included. Being added to the group can take up to an hour to be taken into account. After that delay, log out of the GPU Portal and log back in, as your workloads only get the group with a new session. The same goes for sftp: open a new connection.
-
Losing
GPU_WORKLOAD_MANAGEremoves you from the group: you no longer have access to the storage.
GPU_WORKLOAD_READ alone gives no access to the storage.