Skip to content

Commit

Permalink
add gpu specific config options
Browse files Browse the repository at this point in the history
  • Loading branch information
sateeshperi committed Nov 2, 2024
1 parent ae62842 commit db5555a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ process {
withLabel:process_high_memory {
memory = { 200.GB * task.attempt }
}
withLabel:process_gpu {
ext.use_gpu = { use_gpu }
}
withLabel:error_ignore {
errorStrategy = 'ignore'
}
Expand Down
6 changes: 6 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ profiles {
executor.cpus = 4
executor.memory = 8.GB
}
gpu {
use_gpu = true
docker.runOptions = '-u $(id -u):$(id -g) --gpus device=0'
apptainer.runOptions = '--no-mount tmp --writable-tmpfs --nv'
singularity.runOptions = '--no-mount tmp --writable-tmpfs --nv'
}
test { includeConfig 'conf/test.config' }
test_full { includeConfig 'conf/test_full.config' }
test_ci { params.pipelines_testdata_base_path = './test-datasets/' }
Expand Down

0 comments on commit db5555a

Please sign in to comment.