Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Johannes Nix <jnix@medi.physik.uni-oldenburg.de>
Subject: calling Fortran BLAS Routines
Date: 1999/12/22	[thread overview]
Message-ID: <83r5et$a3o@news.Informatik.Uni-Oldenburg.DE> (raw)


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 :-(.

I was trying this:

tdot.c:

--------------------
float s;
int n=5,inc=1;

float x[]= { .....};
float y[]= { .....};

s = sdot_(&n, x, &inc, y, &inc);
---------------------


gcc -o tdot tdot.c -ldot


All documentation I found regarding the BLAS Routines was like:

S - REAL
D - DOUBLE PRECISION
C - COMPLEX
Z - COMPLEX*16

FUNCTION xDOT (N, X, INCX, Y, INCY)               dot <- X^T*Y  x=S,D,DS
.......


anyone could help me?

BTW., is it possible to link this to object files compiled with ccc?

Does someone has suggestions for very fast vectorized signal
processing routines? Does there exist a standard library?

Johannes





             reply	other threads:[~1999-12-22  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-22  5:00 Johannes Nix [this message]
1999-12-23  5:00 ` calling Fortran BLAS Routines Tony Hammitt
1999-12-23  5:00 ` Martin Kahlert
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