From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C5DA93861828; Sat, 5 Jun 2021 11:59:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5DA93861828 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/100855] pow run time gfortran vs ifort Date: Sat, 05 Jun 2021 11:59:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2021 11:59:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100855 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|WAITING |RESOLVED --- Comment #9 from Dominique d'Humieres --- I don't know if the test is coming from a real world problem. The modified = test program power implicit none real :: sum, sum1, n, q integer :: i, j integer :: limit real :: start, finish sum =3D 0d0 sum1 =3D 0d0 limit =3D 10000 n =3D 2.0 q =3D 0.5 call CPU_TIME(start) do i=3D1, limit n =3D n*q sum1 =3D sum1 + (i ** (0.05 + n)) end do do i=3D1, limit sum =3D sum + (i ** 0.05) end do sum =3D sum1 + (limit-1)*sum call CPU_TIME(finish) print *, sum, n, sum1 print '("Time =3D ",f6.3," seconds.")',finish-start end program power yields 150945680. 0.00000000 15095.7852=20=20=20=20 Time =3D 0.000 seconds.=