Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/cwltool/tests/wf/mpi_expr.cwl @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 #!/usr/bin/env cwl-runner | |
2 | |
3 cwlVersion: v1.1 | |
4 class: CommandLineTool | |
5 $namespaces: | |
6 cwltool: "http://commonwl.org/cwltool#" | |
7 | |
8 doc: | | |
9 Trivial MPI test that prints the process IDs of each of the parallel | |
10 processes. Requires Python (but you have cwltool running, right?) | |
11 and an MPI implementation. | |
12 | |
13 This version takes the number of processes to use as an input and | |
14 then passes this to the MPIRequirement using an expression. | |
15 | |
16 baseCommand: python | |
17 requirements: | |
18 cwltool:MPIRequirement: | |
19 processes: $(inputs.processes) | |
20 arguments: [-c, 'import os; print(os.getpid())'] | |
21 inputs: | |
22 processes: | |
23 type: int | |
24 | |
25 outputs: | |
26 pids: | |
27 type: stdout |