Metadata-Version: 2.4
Name: dcprog
Version: 1.0.0
Summary: Small command for the part A (OpenMP) and part B (MPI) lab programs
License-Expression: MIT
Keywords: openmp,mpi,distributed-computing,lab
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Education
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# dcprog

Part A (OpenMP) and part B (MPI) lab programs behind one short command.
No compiler, OpenMP, or MPI install is required.

```bash
pip install dcprog
```

```text
dcprog                  list the programs
dcprog a1a 3 10 20 30   array sum
dcprog a4 1000000       pi, serial and parallel
dcprog b2 -p 4          reduce and allreduce on 4 ranks
dcprog src a4           print the original C source
```

Leave the numbers off and the command asks for them, same prompts as the C programs.

| id | program |
| --- | --- |
| a1a | array sum |
| a1b | `schedule(static, 2)` |
| a2 | merge sort |
| a3a | fibonacci |
| a3b | maximum element |
| a4 | Leibniz pi |
| a5 | prime count |
| b1 | scatter / gather |
| b2 | reduce / allreduce |
| b3 | send, recv, broadcast |
| b4 | strings to root |
| b5 | barrier |

`-p N` is the rank count for part B (default 4). `-t N` is the thread count for part A (default: one per CPU).
