LAPACK Archives

[Lapack] CBLAS test suite fails on Mac OS X

Dear Johan,
Thank you for reporting the problem.
Could you elaborate a little more on "had problems to behave".? Do you have 
problem running the testing suite? your own program?

CBLAS has been updated this week, nothing major, just adding some folders and 
modifying Makefile.
I am working on Mac OS X and I got no problem so far.

Here is my
My blaslib is Reference BLAS from the netlib LAPACK package compiled with
FORTRAN  = gfortran -fimplicit-none -g
OPTS     =
NOOPT    = -g -O0
LOADER   = gfortran -g

Julie Langou

On Jan 24, 2011, at 6:09 PM, Johan Hattne wrote:

Dear all;

I've had problems getting the test suite for CBLAS to behave on Mac OS
X.  It would seem that the test suite relies on tricking the runtime
linker to resolve certain symbols (xerbla) in the legacy BLAS library
differently compared to what was done when the library was originally
linked.  This doesn't work on Darwin--at least not without playing with
linker flags, and even after playing I couldn't get it to work reliably.

I therefore propose to modify the test suite such that for each
invocation of a subroutine, it spawn a child process and the exit status
of the child is used to determine whether the routine succeeded or not.
This seems to work fine on the systems I have access to (Darwin/ppc,
Darwin/ppc64, Darwin/x86_64, Linux/x86_64 and FreeBSD/x86).  The
drawback is that since this makes use of fork(3), it will have most
likely have issues on Windows.

The patch is big because all subroutine calls in the test suite are
wrapped.  The actual code to make this work is a 20-odd line macro in
cblas_test.h.  I'd be happy to discuss this further with anybody interested.

I don't know where to go with this; hence I'm posting it to both lapack@
and blast-comm at .  Please let me know if there's some place better to
turn to.

// Best wishes; Johan
Lapack mailing list

Julie Langou; Research Associate in Computer Science
Innovative Computing Laboratory;
University of Tennessee from Denver, Colorado ;-)

-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/octet-stream
Size: 1395 bytes
Desc: not available
Url :
-------------- next part --------------
An HTML attachment was scrubbed...

<Prev in Thread] Current Thread [Next in Thread>

For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or