Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@

# macOS
.DS_Store

# Graphics
*.plt
*.png
10 changes: 5 additions & 5 deletions example/concurrent-inferences.f90
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ subroutine print_stats(label, x)
associate(n => size(x))
associate(mean => sum(x)/real(n))
associate(stdev => sum((x-mean)**2)/real(n))
print *, label, mean, stdev
print '(1x,a,2(en10.2,:,", "))', label, mean, stdev
end associate
end associate
end associate
Expand Down Expand Up @@ -120,7 +120,7 @@ real(real64) function do_concurrent_time()
end do
call system_clock(t_finish)
do_concurrent_time = real(t_finish - t_start, real64)/real(clock_rate, real64)
print *,"Elapsed system clock during `do concurrent` inference: ", do_concurrent_time
print '(1x,a,en10.2)',"Elapsed system clock during `do concurrent` inference: ", do_concurrent_time
end function

real(real64) function openmp_time()
Expand All @@ -139,7 +139,7 @@ real(real64) function openmp_time()
end do
call system_clock(t_finish)
openmp_time = real(t_finish - t_start, real64)/real(clock_rate, real64)
print *,"Elapsed system clock during `OpenMP` inference: ", openmp_time
print '(1x,a,en10.2)',"Elapsed system clock during `OpenMP` inference: ", openmp_time
end function

real(real64) function elemental_time()
Expand All @@ -152,7 +152,7 @@ real(real64) function elemental_time()
!$omp end workshare
call system_clock(t_finish)
elemental_time = real(t_finish - t_start, real64)/real(clock_rate, real64)
print *,"Elapsed system clock during `elemental` inference: ", elemental_time
print '(1x,a,en10.2)',"Elapsed system clock during `elemental` inference: ", elemental_time
end function

real(real64) function double_precision_do_concurrent_time()
Expand Down Expand Up @@ -182,7 +182,7 @@ real(real64) function double_precision_do_concurrent_time()
end do
call system_clock(t_finish)
double_precision_do_concurrent_time = real(t_finish - t_start, real64)/real(clock_rate, real64)
print *,"Elapsed system clock during double precision concurrent inference: ", double_precision_do_concurrent_time
print '(1x,a,en10.2)',"Elapsed system clock during double precision concurrent inference: ", double_precision_do_concurrent_time
end function

end program