Skip to content

Commit 1a75b35

Browse files
authored
Added OpenMP target dummy region to DO CONCURRENT example (#2129)
Signed-off-by: hagabb <[email protected]>
1 parent 37d731e commit 1a75b35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DirectProgramming/Fortran/EdgeDetection/sobel-edge-detection/sobel_do_concurrent.F90

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ program sobel_do_conc
5858
gv = reshape([-1, -2, -1, 0, 0, 0, 1, 2, 1], [3, 3])
5959
smooth = reshape([ 1, 2, 1, 2, 4, 2, 1, 2, 1], [3, 3])
6060

61+
! Dummy target region to avoid measuring startup time
62+
!$omp target
63+
!$omp end target
64+
6165
call system_clock(start_time) ! Start timer
6266

6367
do concurrent (c = 2:img_width - 1, r = 2:img_height - 1)

0 commit comments

Comments
 (0)