From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4656f7b2dbe75a7,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-14 13:31:44 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!sgiblab!darwin.sura.net!blaze.cs.jhu.edu!jhunix.hcf.jhu.edu!tarkus.pha.jhu.edu!szgyula From: szgyula@tarkus.pha.jhu.edu (Gyula Szokoly) Newsgroups: comp.unix.osf.osf1 Subject: exp() function in fortran -- why is it so slow? Date: 14 Apr 1994 20:13:27 GMT Organization: Johns Hopkins University Message-ID: <2ok857INN2t4@jhunix.hcf.jhu.edu> NNTP-Posting-Host: tarkus.pha.jhu.edu Hi, I hit the following problem: I'm trying to run a code on a 3000/600AXP machine running OSF 1.3. Accidentaly I've tried to run the same code on a 3000/300 ?? running OpenVMS 1.5. I was really surprised. The code run about 3-4 times FASTER on the OpenVMS machine. I've tried to track down the problem and I figured out that I'm calling the exp() function (in FORTRAN) a lot. If I just remove that function call, the OSF machine runs about twice as fast as the OVMS (which is about right, since the 600 runs at 175MHz, my 300 ?? runs at 125 MHz). What the hell is going on? Even better: what can I do? Is there some switch that I overlooked? I can image small differences between the VMS and OSF compiler but nothing can produce a factor of 8 in speed. Thanks in advance, Gyula -- Gyula P. Szokoly (szgyula@skysrv.pha.jhu.edu) -------------------------------\ | When I am weaker than you, I ask you for freedom because that is according| |to your principles; when I am stronger than you, I take away your freedom| |because that is according to my principles. -- Frank Herbert|