From 099fd574ac065a094b37cd3cda377e63d650179b Mon Sep 17 00:00:00 2001 From: Sateesh Date: Wed, 11 Dec 2024 14:17:24 +0000 Subject: [PATCH] use gpu profile in tests config --- .github/workflows/nf-test-gpu.yml | 2 +- tests/nextflow.config | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nf-test-gpu.yml b/.github/workflows/nf-test-gpu.yml index 3b001888..c2786638 100644 --- a/.github/workflows/nf-test-gpu.yml +++ b/.github/workflows/nf-test-gpu.yml @@ -68,7 +68,7 @@ jobs: strategy: fail-fast: false matrix: - profile: [docker_self_hosted, singularity] + profile: [gpu] shard: ${{ fromJson(needs.get-shards.outputs.shard) }} NXF_VER: - "24.10.2" diff --git a/tests/nextflow.config b/tests/nextflow.config index 6766b79a..a899e619 100644 --- a/tests/nextflow.config +++ b/tests/nextflow.config @@ -27,6 +27,12 @@ process { } profiles { + gpu { + docker.runOptions = '-u $(id -u):$(id -g) --gpus all' + apptainer.runOptions = '--nv' + singularity.runOptions = '--nv' + use_gpu = true + } docker_self_hosted { docker.enabled = true docker.fixOwnership = true