{"@id":"https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl","retrievedFrom":{"repoUrl":"https://github.com/common-workflow-language/cwltool.git","branch":"20bec583996f86de518feb51574ff6efc8784f49","path":"tests/wf/mpi_simple_wf.cwl","packedId":null,"type":"GITHUB","rawUrl":"https://raw.githubusercontent.com/common-workflow-language/cwltool/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl","url":"https://github.com/common-workflow-language/cwltool/blob/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl"},"retrievedOn":"2026-09-27T04:48:00.288+00:00","lastCommit":"20bec583996f86de518feb51574ff6efc8784f49","label":"mpi_simple_wf.cwl","doc":"Simple 2 step workflow to check that workflow steps are\nindependently picking up on the number of processes.  First run the\nparallel get PIDs step (on the input num procs) then run (on a\nsingle proc) the line count. This should equal the input.\n","inputs":{"processes":{"type":"Integer"}},"outputs":{"line_count":{"type":"File"}},"steps":{"count":{"doc":"Line count of input, but mpirun on a single process\n","run":"mpi_line_count.cwl","runType":"COMMANDLINETOOL","sources":{"count":{"sourceIDs":["par_pids"]}}},"par_pids":{"doc":"Trivial MPI test that prints the process IDs of each of the parallel\nprocesses. Requires Python (but you have cwltool running, right?)\nand an MPI implementation.\n\nThis version takes the number of processes to use as an input and\nthen passes this to the MPIRequirement using an expression.\n","run":"mpi_expr.cwl","runType":"COMMANDLINETOOL","sources":{"par_pids":{"sourceIDs":["processes"]}}}},"cwltoolVersion":"3.1.20230201224320","visualisationDot":"digraph workflow {\n  graph [\n    bgcolor = \"#eeeeee\"\n    color = \"black\"\n    fontsize = \"10\"\n    labeljust = \"left\"\n    clusterrank = \"local\"\n    ranksep = \"0.22\"\n    nodesep = \"0.05\"\n  ]\n  node [\n    fontname = \"Helvetica\"\n    fontsize = \"10\"\n    fontcolor = \"black\"\n    shape = \"record\"\n    height = \"0\"\n    width = \"0\"\n    color = \"black\"\n    fillcolor = \"lightgoldenrodyellow\"\n    style = \"filled\"\n  ];\n  edge [\n    fontname=\"Helvetica\"\n    fontsize=\"8\"\n    fontcolor=\"black\"\n    color=\"black\"\n    arrowsize=\"0.7\"\n  ];\n  subgraph cluster_inputs {\n    rank = \"same\";\n    style = \"dashed\";\n    label = \"Workflow Inputs\";\n    \"processes\" [fillcolor=\"#94DDF4\",label=\"processes\"];\n  }\n  subgraph cluster_outputs {\n    rank = \"same\";\n    style = \"dashed\";\n    labelloc = \"b\";\n    label = \"Workflow Outputs\";\n    \"line_count\" [fillcolor=\"#94DDF4\",label=\"line_count\"];\n  }\n  \"count\" [label=\"count\"];\n  \"par_pids\" [label=\"par_pids\"];\n  \"par_pids\" -> \"count\" [label=\"pid_file\"];\n  \"processes\" -> \"par_pids\" [label=\"processes\"];\n  \"count\" -> \"line_count\";\n}\n","licenseLink":"https://spdx.org/licenses/Apache-2.0","permalink":"https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl","packed":false,"visualisationXdot":"/graph/xdot/github.com/common-workflow-language/cwltool/blob/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl","visualisationPng":"/graph/png/github.com/common-workflow-language/cwltool/blob/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl","visualisationSvg":"/graph/svg/github.com/common-workflow-language/cwltool/blob/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl","licenseName":"Apache License 2.0"}