Changeset 1728 in Sophya for trunk/Eval
- Timestamp:
- Oct 31, 2001, 6:55:43 PM (24 years ago)
- Location:
- trunk/Eval/Speed
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Eval/Speed/makefile
r1094 r1728 1 FC = f90 -O 2 CC = cc -O -fast -tune host3 CXX = cxx -O -fast -tune host1 FC = f90 -O3 2 CC = cc -O3 3 CXX = cxx -O3 4 4 LIBBLAS = -ldxml 5 5 -
trunk/Eval/Speed/matrixf.f90
r1727 r1728 4 4 ! declaration d'interface de fonction 5 5 interface 6 subroutine check_table(k, a, b, c )6 subroutine check_table(k, a, b, c, ntot) 7 7 integer, intent (in) :: k 8 integer, intent (inout) :: ntot 8 9 double precision, intent (in), dimension(:,:) :: a,b,c 9 10 end subroutine check_table 10 11 end interface 11 12 12 integer, parameter :: NL = 2, NC=213 integer, parameter :: NL = 4, NC=5 13 14 double precision, dimension (NL, NC) :: m1,m2,m3,m4 14 15 15 integer :: i,j,k 16 16 integer :: i,j,k,kk 17 integer :: ntot,nloop 18 17 19 integer :: N = 5000000 18 20 19 21 print *, '--- timing test : N=', N, ' NL=', NL, ' NC=',NC 22 ntot = 0 23 nloop = 0 24 do kk=1,1 20 25 do k=1,N 21 26 m1 = 0 … … 29 34 m3 = m1+m2; 30 35 m4 = m1*m2; 31 call check_table(k, m2, m3, m4 )36 call check_table(k, m2, m3, m4, ntot) 32 37 ! if (k .eq. 1) then 33 38 ! print *, 'm1=', m1 … … 36 41 ! print *, 'm4=', m4 37 42 ! endif 43 nloop = nloop+1 38 44 enddo 39 40 print *, '------- end of matrixf.f90 ------------' 45 enddo 46 47 print *, ' nloop = ', nloop , ' ntot = ' , ntot 48 print *, '------- end of matrixf.f90 -------- ' 41 49 end 42 50 43 51 44 subroutine check_table(k, a, b, c )52 subroutine check_table(k, a, b, c, ntot) 45 53 integer, intent (in) :: k 46 54 double precision, intent (in), dimension(:,:) :: a,b,c … … 50 58 ' size(a,2)= ', size(a,2) 51 59 endif 60 ntot = ntot+1 52 61 end subroutine check_table 53 62
Note:
See TracChangeset
for help on using the changeset viewer.