Re: what's the ifc corresponding argument for -bp in absoft f90

From: Gordon Sande (g.sande_at_worldnet.att.net)
Date: 10/20/03


Date: Mon, 20 Oct 2003 16:23:21 -0300

In article <up98pvk7s7mrfl77tchv3g6qdugvhqm00h@4ax.com>,
Steve Lionel <Steve.Lionel@intel.com> wrote:

>Subject: Re: what's the ifc corresponding argument for -bp in absoft f90
>From: Steve Lionel <Steve.Lionel@intel.com>
>Organization: Intel Corporation
>Date: Mon, 20 Oct 2003 14:23:11 -0400
>Newsgroups: comp.lang.fortran
>
>On Mon, 20 Oct 2003 14:01:07 -0400, "Shi Jin" <jinzishuai@hotmail.com> wrote:
>
>
>>But we have a way to overcome this problem under absoft f90 compiler --
>>using the -dp option. Here is the description from the man page:
>> -dp Causes variables declared in a DOUBLE PRECISION or DOUBLE
>> COMPLEX statement and constants specified with the D expo-
>> nent character to be converted to the default real kind.
>>
>>This works!
>>
>>But for the intel ifc compiler for linux, we are having trouble finding out
>>what's the corresponding switch .
>>Could anybody help us out here?
>
>I'm a bit confused. Typically, an option such as this makes the default real
>kind be double precision. The Intel equivalent is -r8. And I'd think this
>would solve your problem, But the Absoft man page description makes no sense
>to me - it is saying that things you declare as double precision get treated
>as if they were single precision! Is that really what you want? (And is that
>really what it does?) If so, Intel Fortran does not have such an option.
>

One the occassion of the second full moon of the month (the blue moon) one
might want to back convert a double precision code into single precision.

For example, someone might have made some local modification to a double
precision variant of an LAPACK routine and discovered that they want the
same modification for the single precision variant.

The more serious application used to be taking some 32 bit double stuff
and running it as 60 bit single stuff. There used to be (still is F77?) a
netlib utility for doing the conversions in both directions. The major use
was SP to DP with DP to SP as the minor use.

>
>Compaq Visual Fortran Support: http://compaq.com/fortran/support/visual.html
>Intel Fortran Support: http://developer.intel.com/software/products/support/
>Steve Lionel
>Software Products Division
>Intel Corporation
>Nashua, NH
>
>User communities for Intel Fortran and Compaq Visual Fortran:
> http://intel.com/IDS/forums/fortran