Workflow: mpi_simple_wf.cwl

Fetched 2025-05-10 06:50:27 GMT

Simple 2 step workflow to check that workflow steps are independently picking up on the number of processes. First run the parallel get PIDs step (on the input num procs) then run (on a single proc) the line count. This should equal the input.

children parents
Workflow as SVG
  • Selected
  • Default Values
  • Nested Workflows
  • Tools
  • Inputs/Outputs

Inputs

ID Type Title Doc
processes Integer

Steps

ID Runs Label Doc
count
mpi_line_count.cwl (CommandLineTool)

Line count of input, but mpirun on a single process

par_pids
mpi_expr.cwl (CommandLineTool)

Trivial MPI test that prints the process IDs of each of the parallel processes. Requires Python (but you have cwltool running, right?) and an MPI implementation.

This version takes the number of processes to use as an input and then passes this to the MPIRequirement using an expression.

Outputs

ID Type Label Doc
line_count File
Permalink: https://w3id.org/cwl/view/git/f94719e862f86cc88600caf3628faba6c0d05042/tests/wf/mpi_simple_wf.cwl