Last active
June 29, 2018 17:54
-
-
Save czotti/dab11bee179242ec19563ddafb42fcbd to your computer and use it in GitHub Desktop.
Nextflow pipeline to test if the CUDA_VISIBLE_DEVICES is set.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nextflow | |
modes = [0, 1, 2, 3, 4] | |
process gpu_output { | |
echo true | |
script: | |
""" | |
echo \$CUDA_VISIBLE_DEVICES | |
""" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
profiles { | |
gpu { | |
singularity.runOptions = '--nv' | |
process.queue = 'gpu' | |
process.clusterOptions = '--gres=gpu:gtx:1' | |
env.CUDA_VISIBLE_DEVICES='\$CUDA_VISIBLE_DEVICES' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment