-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nelec as command line argument
- Loading branch information
Showing
13 changed files
with
17,969 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
|
||
program codelet_factor_een | ||
program codelet_factor_een_blas | ||
implicit none | ||
integer :: i | ||
double precision :: ticks_0, ticks_1, cpu_0, cpu_1 | ||
integer, parameter :: irp_imax = 100000 | ||
integer, parameter :: irp_imax = 200 | ||
|
||
|
||
|
||
call provide_factor_een | ||
PROVIDE factor_een_blas tmp_c | ||
|
||
call provide_factor_een_blas | ||
|
||
double precision :: irp_rdtsc | ||
|
||
call cpu_time(cpu_0) | ||
ticks_0 = irp_rdtsc() | ||
do i=1,irp_imax | ||
call bld_factor_een | ||
call bld_tmp_c | ||
call bld_factor_een_blas | ||
enddo | ||
ticks_1 = irp_rdtsc() | ||
call cpu_time(cpu_1) | ||
print *, 'factor_een' | ||
print *, 'factor_een_blas' | ||
print *, '-----------' | ||
print *, 'Cycles:' | ||
print *, (ticks_1-ticks_0)/dble(irp_imax) | ||
print *, 'Seconds:' | ||
print *, (cpu_1-cpu_0)/dble(irp_imax) | ||
end | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.