Re: what's the ifc corresponding argument for -bp in absoft f90
From: Richard Maine (nospam_at_see.signature)
Date: 20 Oct 2003 11:42:14 -0700
"Shi Jin" <firstname.lastname@example.org> writes:
> program ifctest
> print *,dsin(x),dsin(y)
> The problem is dsin(y) where y is a single precision floating point while
> the expected argument of dsin is a double precision.
> Basically this is the code's problem.
Yes. Guess I have to ask why you don't just fix the code?
There is almost never any good reason to use specific intrinsics
like dsin in the first place. You really ought to remove all
references to them from the code.
> But we have a way to overcome this problem under absoft f90 compiler --
> using the -dp option.
Is this the *ONLY* reason you are using the -dp option? To make
illegal calls to specific intrinsics compile? The -dp option
has *FAR* more implications than that. If this was the only reason
you were using -dp, I'd have to expect that it would break
more things than it would fix. I'm guessing that the code needs
the -dp option for more reasons than this and that this is just the
first symptom that you noticed.
I generally advise people to fix codes that need things like -dp,
but I recognize that sometimes that can be too much work to be
practical. I'll give you that advice also, with the same caveat.
If your only problem is the specific intrinsics, then I have
difficulty in believing that it is impractical to fix them.
(Sometimes things that I have difficulty in believing turn out
to be true anyway). If the problem goes deeper, then your job
might be harder.
> But for the intel ifc compiler for linux, we are having trouble finding out
> what's the corresponding switch .
I don't off-hand know. I'm pretty sure that the compiler docs come
with documentation of all the switches, though if I recall correctly,
there are so many of them that it might well be hard to find the one
you need. I wouldn't guarantee that it necessarily has such a switch.
Not all compilers do. That's part of why I recommend fixing codes that
need such a switch.
-- Richard Maine | Good judgment comes from experience; email: my first.last at org.domain | experience comes from bad judgment. org: nasa, domain: gov | -- Mark Twain