From: martin.kahlert@keksy.mchp.siemens.de (Martin Kahlert)
To: Johannes Nix <jnix@medi.physik.uni-oldenburg.de>
Subject: Re: calling Fortran BLAS Routines
Date: 1999/12/23 [thread overview]
Message-ID: <83skbh$e75$2@news.mch.sbs.de> (raw)
In-Reply-To: 83r5et$a3o@news.Informatik.Uni-Oldenburg.DE
[Posted and mailed]
In article <83r5et$a3o@news.informatik.uni-oldenburg.de>,
Johannes Nix <jnix@medi.physik.uni-oldenburg.de> writes:
>
> Hello,
> I am trying to call the optimized (assembler-coded) BLAS routines
> written by Kazushigi Goto from a C Program. He writes they are
> entirely compatible to the Fortran originals, but I didn't manage to
> call sdot_. All what I get out is zero. I tried also to compare with
> f2c output but I don't know Fortran :-(.
Did you put a prototype in front of your call?
i.e. something like
float sdot_(const int*,const float*,const int*,const float*,const int*);
?
Without that, every C-compiler assumes that sdot_ will return an int,
which is a bit wrong...
Bye,
Martin.
--
The early bird gets the worm. If you want something else for
breakfast, get up later.
next prev parent reply other threads:[~1999-12-23 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-22 5:00 calling Fortran BLAS Routines Johannes Nix
1999-12-23 5:00 ` Martin Kahlert [this message]
1999-12-23 5:00 ` Tony Hammitt
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox