flexiblas icon indicating copy to clipboard operation
flexiblas copied to clipboard

macOS vecLib Accelerate Framework thread setting

Open go-ski opened this issue 3 years ago • 2 comments

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?

go-ski avatar Jul 14 '22 21:07 go-ski

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.

grisuthedragon avatar Jul 19 '22 14:07 grisuthedragon