mpimd-csc / flexiblas

FlexiBLAS - A BLAS and LAPACK wrapper library with runtime exchangeable backends. This is only a mirror of https://gitlab.mpi-magdeburg.mpg.de/software/flexiblas-release
https://www.mpi-magdeburg.mpg.de/projects/flexiblas
GNU Lesser General Public License v3.0
36 stars 7 forks source link

macOS vecLib Accelerate Framework thread setting #32

Open go-ski opened 2 years ago

go-ski commented 2 years ago

FlexiBLAS now builds fine on macOS and can switch between "APPLE" (vecLib Accelerate Framework) and "OPENBLASOPENMP" (built with homebrew) - Thank you! But thread control for "APPLE" keeps default threads and always reports 1 thread (tested via R package flexiblas). Setting the variable VECLIB_MAXIMUM_THREADS before starting R, does control threads correctly. Is there a way to specify setting that variable with FlexiBLAS?

grisuthedragon commented 2 years ago

It seems that there is no runtime way in the veclib to change the number of threads. At least, I did not find anyone. So of there is no function, which does the same as VECLIB_MAXIMUM_THREADS it gets hard to implement such a thing on MacOS with the veclib.