GPU jobs¶
Available GPU cards¶
Several GPU servers (lapp-wngpu0XX.in2p3.fr) are available with various NVIDIA GPU cards:
| Server | NVIDIA cards per server | Profile | CPUs (vprocs) | RAM (GiB) |
|---|---|---|---|---|
| 004 | 1 x Tesla V100 | Training | 24 (48) | 192 |
| 005 | 1 x Quadro P6000 | Default | 16 (32) | 64 |
| 006 | 4 x Tesla T4 | Inference | 32 (64) | 192 |
| 007 | 3 x Ampere A100 40GB | Training | 16 (32) | 384 |
| 008 | 3 x Ampere A100 40GB | Training | 16 (32) | 256 |
| 009 | 1 x Ampere A100 40GB | Training | 16 (32) | 256 |
| 010 | 3 x Ampere A100 80GB | Training | 32 (64) | 768 |
| 011 | 3 x Ampere A100 80GB | Training | 32 (64) | 768 |
| 012 | 1 x Ampere A100 80GB | Training | 32 (64) | 512 |
GPU specifications¶
| P6000 | T4 | V100 | A100 40GB | A100 80GB | |
|---|---|---|---|---|---|
| TFlops (float) | 12.6 | 8.1 | 14 | 19.5 | 19.5 |
| Memory (GB) | 24 | 15 | 16 | 40 | 80 |
| CUDA cores | 3840 | 2560 | 5120 | 6912 | 6912 |
| Clock rate (GHz) | 1.645 | 1.590 | 1.380 | 1.410 | 1.410 |
| Compute capability | 6.1 | 7.5 | 7.0 | 8.0 | 8.0 |
| Max CUDA version | 13.0 | 13.4 | 13.0 | 13.4 | 13.4 |
The "a100" GPU type matches both A100 40GB and A100 80GB cards. To target a specific model, explicitly request the "a100-pcie-40gb" or "a100 80gb" GPU type (see below).
Dynamic GPU allocation using partitionable slots¶
GPUs are treated as job resources and managed by HTCondor. To ensure dynamic resource allocation, partitionable slots are used on lapp-wngpuXXX machines.
On each GPU server, one partitionable slot owns all the GPU cards, all the CPUs and all the memory of the machine (see Available GPU cards). When a job is matched, a dynamic slot is created from it with the requested resources. When the job ends, these resources are merged back into the partitionable slot.
No GPU server is reserved for a specific group.
Description file¶
To use one or more GPU cards in a job, add the following line to the description file:
# specify the number of GPU cards to use in the same server
# replace X with 1 to the max possible number of cards in the desired server
request_gpus = X
You can then add lines to specify more precisely the kind of GPU you need:
# for a specific GPU type, replace XXX with "v100", "p6000", "t4", "a100", "a100-pcie-40gb" or "a100 80gb"
+wantGpuType = "XXX"
The value of +wantGpuType is matched, case-insensitively, against the GPU model name published by the server (GPU_MODEL):
+wantGpuType |
GPU model | Servers |
|---|---|---|
"v100" |
Tesla V100-PCIE-16GB | 004 |
"p6000" |
Quadro P6000 | 005 |
"t4" |
Tesla T4 | 006 |
"a100" |
NVIDIA A100 (40 & 80 GB) | 007 to 012 |
"a100-pcie-40gb" |
NVIDIA A100-PCIE-40GB | 007 to 009 |
"a100 80gb" |
NVIDIA A100 80GB PCIe | 010 to 012 |
or
+wantGpuUsage |
GPU types | Servers |
|---|---|---|
"Default" |
P6000 | 005 |
"Inference" |
T4 | 006 |
"Training" |
V100, A100 | 004, 007 to 012 |
If none of these options is defined (or if +wantGpuUsage has an unknown value), the Default profile is applied (execution on P6000).
If both options are specified, +wantGpuType takes priority.
Warning
The Default profile targets a single GPU card (the P6000 on lapp-wngpu005). Your jobs may wait a long time if this card is busy: specify +wantGpuUsage or +wantGpuType whenever possible.
Things to be aware of¶
The combination below must be used with caution:
On a multi-GPU server, requesting all its CPUs (32 on lapp-wngpu007/008, 64 on lapp-wngpu006 and lapp-wngpu010/011) or all its memory prevents other jobs from using the remaining GPU cards.
Remember
When HTCondor is out of CPU or memory in the partitionable slot, it is out of slots for GPU jobs.
Targeting a specific server¶
If you need to run your jobs on a specific GPU server, add the following line to the description file in addition to the type or profile. Without type or profile, the Default profile (P6000) is applied, and a job targeting another server will never start:
# for a specific GPU server, replace XXX with 004 to 012 according to your needs
requirements = machine == "lapp-wngpuXXX.in2p3.fr"
Executable file¶
Once a job is matched to a slot, it needs to know which GPU(s) to use if several are present.
The UIDs of the GPUs the job may use are published in the job's environment in the _CONDOR_AssignedGPUs variable.
HTCondor now has a wrapper that automatically sets the CUDA_VISIBLE_DEVICES environment variable with the card(s) assigned by HTCondor.
Your job will therefore use the correct card.
If you launch an interactive job, the wrapper is not used, so you must manually set the CUDA_VISIBLE_DEVICES environment variable:
To disable the wrapper, add this to your description file:
You will then have to remember to set CUDA_VISIBLE_DEVICES manually in your job.
NVIDIA Multi-instance GPU (MIG) support¶
Available since NVIDIA Ampere GPUs, MIG is an advanced feature offered by NVIDIA, which has been configured and tested on the GPU007 server. It enables multiple GPU instances to run in parallel on a single, physical NVIDIA Ampere GPU, and allows users to see and schedule jobs on new virtual GPU instances as if they were physical GPUs.
Info
MIG is currently not activated, but do not hesitate to contact support-must@lapp.in2p3.fr if you are interested.
MIG allows multiple vGPUs (and thereby VMs) to run in parallel on a single A100, while preserving the isolation guarantees that vGPU provides. For more information on GPU partitioning using vGPU and MIG, refer to the NVIDIA technical brief.
When configured with MIG, the 3 A100 cards of lapp-wngpu007.in2p3.fr may each be split into 2 instances with 3 compute units and 20 GB of memory. Then up to 6 jobs may be active on the GPU007 server at the same time. Other MIG configurations are possible.
To use a MIG GPU, specify in the description file:
Note
With a MIG GPU type, you cannot request more than one GPU.