23 lines
766 B
YAML
23 lines
766 B
YAML
# Opt-in GPU override. The base docker-compose.yml does NOT request a GPU, so
|
|
# `make run` works on CPU-only machines. To use an NVIDIA GPU, layer this file:
|
|
#
|
|
# docker compose -f docker-compose.yml -f docker-compose.gpu.yml \
|
|
# run --rm msi-pipeline-gpu bash run_full_pipeline.sh
|
|
# (or: make run-gpu / make run-dataset-gpu D=<name>)
|
|
#
|
|
# Requirements: an NVIDIA GPU + NVIDIA Container Toolkit.
|
|
# On Podman, first generate the CDI spec, otherwise you get
|
|
# "unresolvable CDI devices nvidia.com/gpu=all":
|
|
#
|
|
# sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
|
|
#
|
|
services:
|
|
msi-pipeline-gpu:
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: all
|
|
capabilities: [gpu]
|