Skip to content

Commit cb2a789

Browse files
committed
Added experimental gpu directive for k8s runs, updated README.md
1 parent ac4e3ae commit cb2a789

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,10 @@ To use Docker or Singularity, run nextflow with the `-with-docker` or `-with-sin
2929
## Kubernetes
3030

3131
You can run this pipeline, as well as any other nextflow pipeline, on a [Kubernetes](https://kubernetes.io/) cluster with minimal effort. Consult the [kube-runner](https://github.com/SystemsGenetics/kube-runner) repo for instructions.
32+
33+
### Experimental GPU Support
34+
35+
Nextflow provides experimental support for using GPUs on a Kubernetes cluster with the `gpu` directive. To use this feature, you must specify the appropriate version of Nextflow version when you run it:
36+
```bash
37+
NXF_VER=19.04.0-edge nextflow kuberun [...]
38+
```

nextflow.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ profiles {
119119
withName:similarity_chunk {
120120
cpus = { params.similarity.gpu ? "${params.similarity.threads}" : 1 }
121121
memory = "8 GB"
122+
123+
gpu = { params.similarity.gpu ? 1 : 0 }
122124
}
123125
withName:similarity_mpi {
124126
cpus = { params.similarity.gpu ? "${params.similarity.chunks * params.similarity.threads}" : "${params.similarity.chunks}" }

0 commit comments

Comments
 (0)