Alessandro Pilotti
11/24/2025, 5:02 PMapiVersion: v1
kind: Pod
metadata:
name: nvidia-smi
namespace: nf-core
spec:
runtimeClassName: nvidia
containers:
- name: nvidia-smi
image: nvidia/cuda:12.6.3-devel-ubuntu24.04
imagePullPolicy: IfNotPresent
command: ["/usr/bin/nvidia-smi"]
resources:
limits:
nvidia.com/gpu: 2Alessandro Pilotti
11/24/2025, 5:09 PMNextflow forum invitation - nostupidquestions
11/24/2025, 7:26 PMThomas Danhorn
11/25/2025, 6:12 AMpontus
11/26/2025, 7:23 AMruntimeClassName I don't think is possible to set from nextflow, is it needed for things to be picked up already?
(I had some vague memory of it being possible to put arbitary spec additions in a map somehow but I don't see any such now.)
As for the resource limits, that should be possible to get by specifying accelerator.Alessandro Pilotti
11/26/2025, 3:22 PMAlessandro Pilotti
12/05/2025, 5:36 PMprocess {
executor = 'k8s'
accelerator {
limit = 2
type = "nvidia.com/gpu"
}
pod = [ runtimeClassName: 'nvidia' ]
}