Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Jan 23, 2024
1 parent 70d5156 commit 84871cc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions benchmarks/dot/dot.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ program benchmark_dot
type(benchmark) :: bench
real(rk), allocatable :: u(:), v(:)
real(rk) :: a
real(rk), volatile :: b
integer(ik) :: p
integer :: nl, seed_size, i
integer, allocatable :: seed_array(:)
Expand Down Expand Up @@ -42,69 +41,69 @@ program benchmark_dot
call bench%start_benchmark(1,'dot_product','a = dot_product(u,v)',[p])
do nl = 1,bench%nloops
a = dot_product(u,v)
b = a
end do
call bench%stop_benchmark(cmp_gflops)
print*,a
!===============================================================================


!===============================================================================
call bench%start_benchmark(2,'m1', "a = dot_product(u,v,'m1')",[p])
do nl = 1,bench%nloops
a = dot_product(u,v,'m1')
b = a
end do
call bench%stop_benchmark(cmp_gflops)
print*,a
!===============================================================================


!===============================================================================
call bench%start_benchmark(3,'m2', "a = dot_product(u,v,'m2')",[p])
do nl = 1,bench%nloops
a = dot_product(u,v,'m2')
b = a
end do
call bench%stop_benchmark(cmp_gflops)
print*,a
!===============================================================================


!===============================================================================
call bench%start_benchmark(4,'m3', "a = dot_product(u,v,'m3')",[p])
do nl = 1,bench%nloops
a = dot_product(u,v,'m3')
b = a
end do
call bench%stop_benchmark(cmp_gflops)
print*,a
!===============================================================================


!===============================================================================
call bench%start_benchmark(5,'m4', "a = dot_product(u,v,'m4')",[p])
do nl = 1,bench%nloops
a = dot_product(u,v,'m4')
b = a
end do
call bench%stop_benchmark(cmp_gflops)
print*,a
!===============================================================================


!===============================================================================
call bench%start_benchmark(6,'chunks', "a = fprod(u,v)",[p])
do nl = 1,bench%nloops
a = fprod(u,v)
b = a
end do
call bench%stop_benchmark(cmp_gflops)
print*,a
!===============================================================================


!===============================================================================
call bench%start_benchmark(7,'kahan', "a = fprod_kahan(u,v)",[p])
do nl = 1,bench%nloops
a = fprod_kahan(u,v)
b = a
end do
call bench%stop_benchmark(cmp_gflops)
print*,a
!===============================================================================

end do
Expand Down

0 comments on commit 84871cc

Please sign in to comment.