[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,

less ~/Library/PLT\


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


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.