Skip to content

Compiling BLAS with Accelerate

1 message · Simon Urbanek

#
Tomek,

Fortran symbols are not included C headers (even though they are part of the library) so probably the easiest is to add -Wno-error=implicit-function-declaration.

However, if you just want to test Accelerate BLAS, use libRblas.vecLib.dylib, because that is a simple re-export of the Accelerate framework - it doesn't include any actual code:

$ otool -l /Library/Frameworks/R.framework/Resources/lib/libRblas.vecLib.dylib | grep -A2 REEXPORT
          cmd LC_REEXPORT_DYLIB
      cmdsize 96
         name /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (offset 24)

The blas00.c is just a dummy file to test the symbols R is using (without their prototypes), but on macOS that doesn't even matter as we don't bind them at compile time anyway so all symbols are re-exported instead.

Cheers,
Simon