Skip to content

Commit

Permalink
Update OpenMP-Fortran.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrahan41 committed Dec 17, 2020
1 parent f2afdba commit 1b19718
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/programming/OpenMP-Fortran.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ __Intel Fortran__
ifort parallel_hello_world.f90 -o parallel_hello_world.exe -qopenmp
```

This will give us an executable we can submit as a job to
Summit. Simply submit the job specifying slurm to run the
executable. Your submission script should look something like this:
This will give us an executable we can run as a job on
Summit. Simply run the job specifying slurm to run the
executable. Your job script should look something like this:

```bash
#!/bin/bash
Expand Down Expand Up @@ -167,7 +167,7 @@ __Intel Fortran__
ifort parallel_hello_world.f90 -o parallel_hello_world.exe -qopenmp
```

Resubmit our job script and we should end with an output file similar
Running our job script and we should end with an output file similar
to this one:

Hello from process: 3
Expand Down Expand Up @@ -267,7 +267,7 @@ INTEGER :: thread_id
END
```

Compiling and submitting our code will result in a similar result to
Compiling and running our code will result in a similar result to
our original hello world:

```
Expand Down Expand Up @@ -381,7 +381,7 @@ INTEGER :: thread_id
END
```

Compiling and submitting our code should order our print statements as
Compiling and running our code should order our print statements as
such:

```fortran
Expand Down Expand Up @@ -509,7 +509,7 @@ PRINT *, “Total Sum: ”, total_Sum
END
```

This will complete our parallel summation. Compiling and submitting
This will complete our parallel summation. Compiling and running
our code will result in this output:

```
Expand Down

0 comments on commit 1b19718

Please sign in to comment.