> -----Original Message-----
> From: Peter Shenkin [SMTP:[log in to unmask]]
> Sent: Tuesday, July 23, 2002 3:36 PM
> To: [log in to unmask]
> Subject: Re: Runtime error in Forte compiled program
>
> Hi,
>
> On Sat, 20 Jul 2002, Ahmad Mr M ([log in to unmask]) wrote:
>
> > > -----Original Message-----
> > > From: Richard Maine [SMTP:[log in to unmask]]
> > > Many newer Fortran compilers have switches to accomodate code that
> > > made this incorrect assumption. By using the -stackvar switch, you
> > > told the compiler that your code didn't make this assumption...I'd
> > > guess that somewhere the code does.
>
> > Yes, I remember that at the time when I was using -stackvar
> switch,
> > the program halted while in the LAPACK linear solver routine (Sun
> > performance library). So, for my part of the code I told the compiler
> that I
> > don't make this assumption (of some variable having the SAVE attribute),
> > whereas sunperf linear solver routine did make this assumption hence
> > resulting in abnormal program termination.
>
> I'm not sure this makes sense. Did you compile the Sun performance
> library yourself? If not, then your use of -stackvar to compile
> other routines cannot have affected the code within the Sun
> performance library.
>
No. Instead I used the sunperf provided by Sun Forte Developer
system.
> The problem is far more likely to be within your own code --
> perhaps in the value of an uninitialized variable being passed
> to a LAPACK routine.
>
Yes, I have confirmed this by printing some variables in my part of
code compiling without -stackvar as you said. The problem is in my code.
> You could try printing the values of the variables passed to
> the LAPACK routine that hangs, before you call that routine.
> You could try this with and without -stackvar. That's not
> guaranteed to be illuminating, but it's a place to start.
>
Thanks
Mahmood
> -P.
>
>
>
> --
> Peter S. Shenkin Schrodinger, Inc.
> VP, Software Development 120 W. 45th St.
> 646 366 9555 x111 Tel New York, NY 10036
> 646 366 9550 FAX [log in to unmask]
> http://www.schrodinger.com
> Pre-arranged conf. calls: 702-759-8420 or 888-867-7084; passcode 646-366
|