OpenBLAS icon indicating copy to clipboard operation
OpenBLAS copied to clipboard

Single threaded version using commands like apt-get or homebrew

Open RobeDM opened this issue 10 years ago • 2 comments

I am using a single threaded version of openblas.

For project requirements I need to avoid any possibility of parallelization with environment variables.

I build openblas using:

make USE_THREAD=0

Is there any possibility to install a single thread version of openblas with commands like apt-get in ubuntu or hombrew in Os X?

RobeDM avatar Oct 27 '16 09:10 RobeDM

Not sure I understand your question, but both apt-get and homebrew rely on (local files or known internet repositories providing) a prebuilt package, so I believe this boils down to "how does one package for homebrew/apt/rpm/whatever" ? You may want to contact the maintainers of the existing Ubuntu or OSX openblas packages if you do not find a single-threaded build already provided - or download their source packages to obtain (and modify) their build framework if you plan to provide your own packages.

martin-frbg avatar Oct 27 '16 10:10 martin-frbg

Following variables will disable threading in OpenBLAS and many competing libraries' multithreaded versions: OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1,1 MKL_NUM_THREADS=1 ATLAS_NUM_THREADS=1

RPM (suse/mandrive/fedora) have multiple packages with different thread configurations. -lopenblas is usually single threaded.

brada4 avatar Oct 27 '16 19:10 brada4