From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id ADF432F8E8 for ; Thu, 19 Apr 2001 11:04:09 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f3JF0mF09737 for axp-list@listman.redhat.com; Thu, 19 Apr 2001 11:00:48 -0400 Received: from lucy.physik.tu-cottbus.de (lucy.physik.TU-Cottbus.De [141.43.75.1]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f3JF0mC09733 for ; Thu, 19 Apr 2001 11:00:48 -0400 Received: (qmail 235874 invoked from network); 19 Apr 2001 15:03:55 -0000 Received: from wynton.physik.tu-cottbus.de (george@141.43.75.16) by lucy.physik.tu-cottbus.de with SMTP; 19 Apr 2001 15:03:55 -0000 Date: Thu, 19 Apr 2001 17:03:55 +0200 From: Ionut Georgescu To: axp-list@redhat.com Subject: Re: g77 issues In-Reply-To: <003201c0c8cf$6ca1c360$0300000a@win1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Ionut Georgescu sends greetings to MCGWIER ROBERT >How are enfer, entmp, and enpct declared? >Are they in fact real*16? everything is real*8 . > >Bob > >----- Original Message ----- >From: "Ionut Georgescu" >To: >Cc: ; >Sent: Thursday, April 19, 2001 3:36 AM >Subject: g77 issues > > >> >> >> The purpose is to compute the following expression: >> >> enfer= 1.3058750148074976d0 >> entmp = 0.093822912209640966d0 >> enpct = -2.2021424321973448d0 >> >> tfermi = 1.0d0/(dexp((enpct-enfer)/entmp)+1.0d0) >> >> >> The problem is the following. With a small test programm, the result is >> always correct, on any platform with any compiler. If I take the tfermi >> line and copy it into a bigger programm, then the results are false. This >> happens on x86 with g77. On alpha it seems to be OK, both with fort and >> g77. The results are again different if, on x86, Portland's pgf77 is used. >> >> Are there any known issues with dexp ? It's very hard to reproduce this >> since it happens only in big programms, even if those variables are >> hardcoded !! >> >> I have tested this both on the local cluster and on testdrive at >> compaq(RedHat). The results were exactly the same (alpha<->alpha, >> x86<->x86) >> >> >> Regards, >> Ionut >> >> PS command line: g77 -g -pg -o programm *.f >> PPS gcc -v: >> Reading specs from /usr/lib/gcc-lib/alpha-linux/2.95.3/specs >> gcc version 2.95.3 20010315 (Debian release) >> PPS I made another test. In the big programm I have defined a function >> fermi2: >> >> ************************************** >> real*8 function fermi2(enpc) >> >> implicit real*8 (a-h,o-z) >> common /list4/enfer,entmp >> >> tmp = 1.0d0/(dexp((enpc-enfer)/entmp)+1.0d0) >> print*,'tmp_fermi2(',enpc,')=',tmp >> fermi2=tmp >> >> return >> end >> ******************************* >> >> and computed the following expression: >> >> aux22= 1.0d0-fermi2(enpct) >> >> The output was: >> >> on x86: >> tmp_fermi2( -2.20214243)= 1. >> aux22= 1.11022302E-16 !! should have been 0. !! >> >> on alpha: >> tmp_fermi2( -2.20214243)= 1. >> aux22= 0. >> >> *************** >> * Ionut Georgescu >> * http://www.physik.tu-cottbus.de/~george/ >> * ICQ: 38973105 >> * "In Windows you can do everything Microsoft wants you to do; in Unix you >> * can do anything the computer is able to do." >> >> >> >> >> >> _______________________________________________ >> Axp-list mailing list >> Axp-list@redhat.com >> https://listman.redhat.com/mailman/listinfo/axp-list >> > > > >_______________________________________________ >Axp-list mailing list >Axp-list@redhat.com >https://listman.redhat.com/mailman/listinfo/axp-list > *************** * Ionut Georgescu * http://www.physik.tu-cottbus.de/~george/ * ICQ: 38973105 * "In Windows you can do everything Microsoft wants you to do; in Unix you * can do anything the computer is able to do."