2020-12-14 13:40:47 +01:00
|
|
|
|
2021-03-10 14:52:04 +01:00
|
|
|
program codelet_factor_een_blas
|
2020-12-14 13:40:47 +01:00
|
|
|
implicit none
|
|
|
|
integer :: i
|
|
|
|
double precision :: ticks_0, ticks_1, cpu_0, cpu_1
|
2021-03-10 14:52:04 +01:00
|
|
|
integer, parameter :: irp_imax = 200
|
2020-12-14 13:40:47 +01:00
|
|
|
|
|
|
|
|
2021-03-10 14:52:04 +01:00
|
|
|
PROVIDE factor_een_blas tmp_c
|
|
|
|
|
|
|
|
call provide_factor_een_blas
|
2020-12-14 13:40:47 +01:00
|
|
|
|
|
|
|
double precision :: irp_rdtsc
|
|
|
|
|
|
|
|
call cpu_time(cpu_0)
|
|
|
|
ticks_0 = irp_rdtsc()
|
|
|
|
do i=1,irp_imax
|
2021-03-10 14:52:04 +01:00
|
|
|
call bld_tmp_c
|
|
|
|
call bld_factor_een_blas
|
2020-12-14 13:40:47 +01:00
|
|
|
enddo
|
|
|
|
ticks_1 = irp_rdtsc()
|
|
|
|
call cpu_time(cpu_1)
|
2021-03-10 14:52:04 +01:00
|
|
|
print *, 'factor_een_blas'
|
2020-12-14 13:40:47 +01:00
|
|
|
print *, '-----------'
|
|
|
|
print *, 'Cycles:'
|
|
|
|
print *, (ticks_1-ticks_0)/dble(irp_imax)
|
|
|
|
print *, 'Seconds:'
|
|
|
|
print *, (cpu_1-cpu_0)/dble(irp_imax)
|
|
|
|
end
|
|
|
|
|
2021-03-10 14:52:04 +01:00
|
|
|
|