[plt-scheme] Re: A segmentation fault on OS X Intel

From: Noel Welsh (noelwelsh at gmail.com)
Date: Sat Jan 12 15:26:33 EST 2008

I'm on 10.5, Intel.  I've checked the header file against the linalg
code and it is correct:

less /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers/cblas.h

...
   enum CBLAS_TRANSPOSE {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113,
                         AtlasConj=114};


less ~/Library/PLT\
Scheme/planet/300/372.1/cache/wmfarr/plt-linalg.plt/1/5/blas-lapack.ss

...

 (define _cblas-transpose (_enum '(no-trans = 111 trans = 112
conj-trans = 113 atlas-conj = 114))
)


I think the error must be either in Apple's CBLAS or in the FFI.

N.

On Jan 12, 2008 4:01 PM, Will Farr <farr at mit.edu> wrote:
> Noel,
>
> I've added your code to the test suite, and it runs just fine
> (repeatedly) on my machine (Mac OS X 10.4, PPC).  If
> matrix-f64vector-mul works fine on your machine, then I have a guess
> as to the problem: check the values of the enum for _cblas-transpose
> (defined in blas-lapack.ss) against their corresponding values in the
> BLAS headers.  Unlike matrix-f64vector-mul, f64vector-matrix-mul uses
> the transpose flag to BLAS when doing the multiplication.  Otherwise
> the routines are the same.
>
> Let me know if this doesn't work---and I'll have another look at the code.
>
> Will


Posted on the users mailing list.