Skip to content
Snippets Groups Projects
Commit fa3af48f authored by Xin Li's avatar Xin Li
Browse files

corrected fortran openmp directives

parent 0507f16a
Branches
No related tags found
No related merge requests found
...@@ -65,29 +65,29 @@ below ...@@ -65,29 +65,29 @@ below
- What’s the difference between - What’s the difference between
``` ```
$!omp parallel do !$omp parallel do
do i=1,n do i=1,n
... ...
$!omp end parallel do !$omp end parallel do
$!omp parallel do !$omp parallel do
do j=1,m do j=1,m
... ...
$!omp end parallel do !$omp end parallel do
``` ```
and and
``` ```
$!omp parallel !$omp parallel
$!omp do !$omp do
do i=1,n do i=1,n
... ...
$!omp end do !$omp end do
$!omp do !$omp do
do j=1,m do j=1,m
... ...
$!omp end do !$omp end do
$!omp end parallel !$omp end parallel
``` ```
_Hint: How are threads created/destroyed by OpenMP? How can it impact performance?_ _Hint: How are threads created/destroyed by OpenMP? How can it impact performance?_
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment