Newsgroups: comp.parallel.pvm
From: "Robert J. Block" <rblock@ncsa.uiuc.edu>
Subject: Re: ScaLAPACK & C
Organization: University of Illinois
Date: Mon, 27 May 1996 22:41:19 -0500
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <31AA75DF.41C67EA6@ncsa.uiuc.edu>

Martin Bernreuther wrote:
> 
> Hi everybody,
> 
> Anybody out there with some experiences in programming with
> ScaLAPACK using C ? Are there any header files available?
> 
> Thanks & Bye
>         Martin
> 
> -------------------------------------------------------------------------------
> Martin Bernreuther                                    Civil Engineering student
> M.Bernreuther@studbox.uni-stuttgart.de         University of Stuttgart, Germany
> -------------------------------------------------------------------------------

I've used ScaLAPACK with C.  You don't need any headers, just call the routines.
You probably need to suffix your function calls (eg. pdgetrf_).  Also, I've needed
to link my application with the fortran linker - simply doing "cc file.o ... -lF77 -lm"
leaves a bunch of unresolved references (at least on Sun archs).  I asked the
scalapack folks about a year ago but they didn't have any better suggestions.

My compile line looks roughly like:

cc -c file.c
f77 file.o -lscalapack -lredist -lpblas -ltools -lblacs -lblas -lpvm3

Regards,
Rob

-- 
Robert J. Block      | University of Illinois at Urbana-Champaign
rblock@ncsa.uiuc.edu | <URL: http://www.ncsa.uiuc.edu/People/rblock>
"I do have a cause. It's obscenity. I'm for it." -Tom Lehrer

