Google Groups Home
Help | Sign in
Message from discussion fl32 vs df in cvf6.6
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
formulae translator  
View profile  
 More options May 15 2008, 10:47 am
Newsgroups: comp.lang.fortran
From: formulae translator <liwei19742...@gmail.com>
Date: Thu, 15 May 2008 07:47:36 -0700 (PDT)
Local: Thurs, May 15 2008 10:47 am
Subject: fl32 vs df in cvf6.6
Today I tried a very simple speed test using fl32 and df command
(compaq visual fortran 6.6)

program speed
integer :: i, j, k, n
real :: a, b, c
call cpu_time(a)
do i=1,1000
do j=1,100
do k=1,100
c=(sin(real(i))**2.0+cos(real(j))**2.0)+log(real(i))*log(real(j))
+real(k)
! write(*,*) c
end do
end do
end do
call cpu_time(b)
b=b-a
write(*,*) b,c
end program

the output of df compiled speed.exe is 0.000000e+00  133.2387
while the output of fl32 compiled speed.exe is 4.203125 133.238703

I am just curious why df compiled exe always gives zero cpu time?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google