[R-SIG-Mac] Compiling BLAS with Accelerate

Tomek Gieorgijewski cybergeorge2020 @end|ng |rom gm@||@com
Sat Nov 30 22:29:51 CET 2024


Thank you Simon!
configure with this option seems to work fine and produce:
"External libraries:          pcre2, readline, BLAS(Accelerate), curl
 Additional capabilities:     PNG, JPEG, TIFF, NLS, cairo, ICU
 Options enabled:             framework, shared BLAS, R profiling"

However after starting compilation I get a lot of errors mainly in the gist:
sources/src/extra/blas/blas00.c:6:5: error: implicit declaration of
function 'dasum_' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    F77_CALL(dasum)();
    ^
/[...]/sources/src/include/R_ext/RS.h:104:22: note: expanded from macro
'F77_CALL'
# define F77_CALL(x)    x ## _
<scratch space>:69:1: note: expanded from here
dasum_
^
my arch is x86-64.
I tried to find something on the Internet or R admin but with no luck.
I guess some includes or other configuration is missing but I have no
experience with such huge build system.

I am generally aiming at testing different BLASes or own implementations of
matrix operations (matmul mainly),
perf and correctness wise.

T.

sob., 30 lis 2024 o 09:14 Simon Urbanek <simon.urbanek using r-project.org>
napisał(a):

> Tomek,
>
> see R-admin C.3.5.1:
> https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Accelerate
> so essentially just add the following to the regular flags:
> --enable-BLAS-shlib --with-blas='-framework Accelerate'
>
> Cheers,
> Simon
>
>
>
>
> > On Nov 30, 2024, at 2:10 AM, Tomek Gieorgijewski <
> cybergeorge2020 using gmail.com> wrote:
> >
> > Hi!
> >
> > I can compile R on macOS with standard BLAS but how can I compile R
> myself to get this vecLib BLAS which is added in binary distribution for
> Mac on CRAN?
> >
> > regards,
> > Tomek.
> >
> >       [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-SIG-Mac mailing list
> > R-SIG-Mac using r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> >
>
>

	[[alternative HTML version deleted]]



More information about the R-SIG-Mac mailing list