Skip to content

Commit 7e944da

Browse files
authored
Merge pull request nf-core#3632 from nictru/gpu-accelerator-directive
Add accelerator directive for GPU-enabled processes
2 parents 6c6c113 + 167fb27 commit 7e944da

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- fix nf-test scope to ignore nf-core module/swf tests ([#3609](https://github.com/nf-core/tools/pull/3609))
99
- TEMPLATE - CI - Only trigger nf-test action on pull_request ([#3628](https://github.com/nf-core/tools/pull/3628))
1010
- TEMPLATE - Fix link to nf-test GHA in README.md ([#3630](https://github.com/nf-core/tools/pull/3630))
11+
- TEMPLATE - Add accelerator directive for GPU-enabled processes ([#3632](https://github.com/nf-core/tools/pull/3632))
1112

1213
### Linting
1314

nf_core/pipeline-template/conf/base.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ process {
6161
}
6262
withLabel: process_gpu {
6363
ext.use_gpu = { workflow.profile.contains('gpu') }
64+
accelerator = { workflow.profile.contains('gpu') ? 1 : null }
6465
}
6566
}

0 commit comments

Comments
 (0)