| | 226 | |
| | 227 | == Verifying C/MPI Programs == |
| | 228 | |
| | 229 | CIVL can verify C/MPI programs that use a subset of MPI. The instructions for sequential programs apply equally to MPI programs. In addition, one must specify either (1) the number of processes for the MPI program, or (2) an upper and a lower bound on the number of processes for the MPI program. |
| | 230 | |
| | 231 | In the following example, the C/MPI program `ring.c` is verified for exactly 5 processes: |
| | 232 | |
| | 233 | {{{ |
| | 234 | civl verify -input_mpi_nprocs=5 ring.c |
| | 235 | }}} |
| | 236 | |
| | 237 | In the following example, `ring.c` is verified for any number of processes between 2 and 5, inclusive: |
| | 238 | |
| | 239 | {{{ |
| | 240 | civl verify -input_mpi_nprocs_lo=2 -input_mpi_nprocs_hi=5 ring.c |
| | 241 | }}} |
| | 242 | |
| | 243 | |