From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: Date: Thu, 13 Nov 1997 17:18:13 +0100 (CET) From: David van der Spoel Subject: Re: Perf. of F77 on Alpha In-Reply-To: On Thu, 13 Nov 1997, Tom Linden wrote: >You don't want to write your own routine (reinvent the wheel) If you did, >the most efficient would be a table lookup for a seed to a Newton=Raphson >loop. But how are you going to inline it? with F77 this wont fit into an >arithmetic statement function, with C you could build macro, but this >is a regressive computing technique. Its the compiler! Find a copiler >that does the inlining. I haven't looked at it but I would bet that DEC >Fortran does this, I think they used to on the VAX. > Actually, I just did. I had C-code from when we used to do these computation on i860 chips. The DEC compiler does *not* inline intrinsic functions, at least I have not found a way how to do it. The fortran compiler will inline it for me I hope... > >On Thu, 13 Nov 1997, David van der Spoel wrote: > >> Yes I have profiled my app, 80 % of the time is in one loop that has >> the sqrt, or actually 1/sqrt which the DEC F77 compiler recognizes >> and puts in a call to rsqrtf. However, the compiler should inline the >> code for the rsqrt and then pipeline my loop, which now it doesn't. >> >> So I will probably write F77 code for the 1/sqrt (I have C-code for it) >> unless I can find a smarter compiler >> >> Groeten, David. >> ________________________________________________________________________ >> Dr. David van der Spoel Biomedical center, Dept. of Biochemistry >> s-mail: Husargatan 3, Box 576, 75123 Uppsala, Sweden >> e-mail: spoel@xray.bmc.uu.se www: http://zorn.bmc.uu.se/~spoel >> phone: 46 18 471 4205 fax: 46 18 511 755 >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> >> -- >> To unsubscribe: send e-mail to axp-list-request@redhat.com with >> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com >> >> > Groeten, David. ________________________________________________________________________ Dr. David van der Spoel Biomedical center, Dept. of Biochemistry s-mail: Husargatan 3, Box 576, 75123 Uppsala, Sweden e-mail: spoel@xray.bmc.uu.se www: http://zorn.bmc.uu.se/~spoel phone: 46 18 471 4205 fax: 46 18 511 755 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com