Skip to content

Commit

Permalink
Update MPI-C.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrahan41 committed Dec 17, 2020
1 parent 5715589 commit 3d90495
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/programming/MPI-C.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ __Intel MPI__
mpiicc hello_world_mpi.cpp -o hello_world_mpi.exe
```

This will produce an executable we can submit to Summit as a job. In
This will produce an executable we can pass to Summit as a job. In
order to execute MPI compiled code, a special command must be used:

```bash
Expand All @@ -172,9 +172,9 @@ mpirun -np 4 ./hello_world_mpi.exe
The flag -np specifies the number of processor that are to be utilized
in execution of the program.

In your job submission script, load the same compiler and OpenMPI
choices you used above to compile the program, and submit the job with
slurm to run the executable. Your job submission script should look
In your job script, load the same compiler and OpenMPI
choices you used above to compile the program, and run the job with
slurm to execute the application. Your job script should look
something like this:

__OpenMPI__
Expand Down Expand Up @@ -217,7 +217,7 @@ mpirun -np 4 ./hello_world_mpi.exe

It is important to note that on Summit, there is a total of 24 cores
per node. For applications that require more than 24 processes, you
will need to request multiple nodes in your job submission. Our
will need to request multiple nodes in your job. Our
output file should look something like this:

```
Expand Down Expand Up @@ -317,7 +317,7 @@ int main(int argc, char** argv){
}
```

Compiling and submitting this code will result in this output:
Compiling and running this code will result in this output:

```
Hello World from process 0 of 4
Expand Down Expand Up @@ -469,7 +469,7 @@ int main(int argc, char** argv) {
}
```
Compiling and submitting our code with 2 processes will result in the
Compiling and running our code with 2 processes will result in the
following output:
```
Expand Down

0 comments on commit 3d90495

Please sign in to comment.