How do I run a job at a GPU server?
A: Only two worker nodes equipped with GPU are available at the Golias farm – gpu01 and gpu02.
GPU specification:
gpu01 – 1x NVidia A30, 24GB RAM, produced in 2021
gpu02 – 1x NVidia RTX Pro 6000 Blackwell Server Edition, 96GB RAM, produced in 2026
GPU servers are dedicated for interactive jobs and for batch jobs requesting GPU. Both kinds of jobs are started through HTCondor from the login servers (ui.farm.particle.cz).
Warning: Logging in to the GPU servers directly via ssh is no longer supported – the GPU servers now follow the same access policy as all other worker nodes. The only way to get a shell on a GPU server is an HTCondor job (see below), or condor_ssh_to_job into a job that is already running there.
Batch job
To run a batch job at the GPU server add a requirement for GPU to a job_submission_file:
executable = my_gpu_job.sh
request_gpus = 1
request_cpus = 1
request_memory = 8GB
request_disk = 10GB
output = job.out
error = job.err
log = job.log
queue
and submit it as usual with condor_submit. A job without request_gpus is never started on a GPU server.
Interactive job
An interactive job (see How do I run an interactive job?) is also started on a GPU server. To be able to use the GPU in it, the job must request it – an interactive job without request_gpus runs on the same servers, but the GPU is hidden from it:
[username@ui ~]$ condor_submit -interactive gpu_job_submission_file
Submitting job(s).
1 job(s) submitted to cluster 1234567.
Waiting for job to start...
Welcome to slot1@gpu01.farm.particle.cz!
[username@gpu01]$ nvidia-smi -L
GPU 0: NVIDIA A30 (UUID: GPU-...)
where gpu_job_submission_file contains request_gpus = 1.
Using the GPU in the job
HTCondor assigns the GPU to the job and sets CUDA_VISIBLE_DEVICES accordingly – do not change it. Other GPUs and jobs on the server are not visible to your job. Check the assignment with nvidia-smi -L.
Software from CernVM-FS (CVMFS)
Ready-to-use CUDA enabled Python software (PyTorch, JAX, CuPy, Numba, XGBoost, ONNX Runtime, Keras, …) is available in CVMFS as an LCG view. Load it at the beginning of your job script:
source /cvmfs/sft.cern.ch/lcg/views/LCG_110a_cuda/x86_64-el9-gcc13-opt/setup.sh
The following examples were tested on a GPU server with this view (Python 3.13, CUDA 12). Put the lines into your job script (for a batch job) or type them in the interactive session.
PyTorch
python3 -c "import torch; print(torch.__version__, torch.cuda.is_available(), torch.cuda.get_device_name(0))"
python3 -c "import torch; a = torch.randn(4096, 4096, device='cuda'); print((a @ a).sum().item())"
JAX
python3 -c "import jax, jax.numpy as jnp; print(jax.devices()); a = jnp.ones((2048, 2048)); print((a @ a).sum())"
CuPy (NumPy-like arrays on the GPU)
python3 -c "import cupy as cp; a = cp.random.rand(2048, 2048); print(float((a @ a).sum()))"
Numba (CUDA kernels in Python)
python3 -c "from numba import cuda; print(cuda.is_available(), cuda.gpus)"
XGBoost (training on the GPU)
python3 -c "import numpy as np, xgboost as xgb; X = np.random.rand(20000, 20); y = (X[:, 0] > 0.5).astype(int); m = xgb.XGBClassifier(device='cuda', n_estimators=50).fit(X, y); print(m.score(X, y))"
A complete batch job
Job script my_gpu_job.sh:
#!/bin/bash
source /cvmfs/sft.cern.ch/lcg/views/LCG_110a_cuda/x86_64-el9-gcc13-opt/setup.sh
nvidia-smi -L
python3 my_training.py
and a submit file as in the Batch job section above (executable = my_gpu_job.sh, request_gpus = 1). To see which software is in the view, run ls on the lib/python3.13/site-packages directory of the view or ask the administrators for a package that is missing.
