flexiblas_set_num_threads(3)
β¨ flexiblas_set_num_threads β¨
okay bestie, so this is a page from the FlexiBLAS manual (section 3, the library-calls girlies) and it's all about telling your BLAS backend how many threads it's allowed to use π
π NAME π
flexiblas_set_num_threads β set the number of threads the backend should use for computation.
like, that's it, that's the whole job π«Ά
πΈ SYNOPSIS πΈ
#include <flexiblas/flexiblas_api.h>
void flexiblas_set_num_threads(int num);
and as weak aliases:
void openblas_set_num_threads(int num);
void mkl_set_num_threads(int num);
void blas_set_num_threads(int num);
void acmlsetnumthreads(int num);
Link with -lflexiblas.
not the acmlsetnumthreads one having absolutely NO underscores π she's built different fr
π DESCRIPTION π
flexiblas_set_num_threads changes the number of threads used for computation if the backend supports this. no cap, that "if" is doing a lot of heavy lifting there, so read it twice π₯
The aliases exist for compatibility reasons with other BLAS implementations like Intel MKL, OpenBLAS, or AMD ACML. so if your codebase is out here calling mkl_set_num_threads and you've swapped in FlexiBLAS, it justβ¦ works. iconic behaviour honestly π
π ERRORS π
No errors occur.
literally none. zero. the vibe check always passes. not a single thing can go wrong here and that's the most relaxing sentence in this entire manpage π
π¦ REPORTING BUGS π¦
The current information about the developers and reporting bugs can be found on the FlexiBLAS homepage.
FlexiBLAS Homepage: <http://www.mpi-magdeburg.mpg.de/projects/flexiblas>
found a bug? bestie, go tell them directly, don't suffer in silence π
π AUTHORS π
Martin Koehler, Jens Saak
π COPYRIGHT π
Copyright (C) 2013-2025 Martin Koehler
π LICENSE π
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
"there is NO WARRANTY" in all caps because they mean it, bestie, it's giving legal-threat energy but make it love π
and that's the whole page, periodt β¨ this was the flexiblas_set_num_threads(3) page from The FlexiBLAS Library, dated 2013-2025, written by M. Koehler β mwah, go forth and set your thread count responsibly π§π
π¦ where this page comes from
- fedora 43: flexiblas-devel 3.4.5-5.fc43 Β· LGPL-3.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause-Open-MPI
- fedora 43: flexiblas-devel 3.4.5-5.fc43 Β· LGPL-3.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause-Open-MPI
- fedora 43: flexiblas-devel 3.5.0-1.fc43 Β· LGPL-3.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause-Open-MPI
- fedora 43: flexiblas-devel 3.5.0-1.fc43 Β· LGPL-3.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause-Open-MPI
- fedora 44: flexiblas-devel 3.5.0-2.fc44 Β· LGPL-3.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause-Open-MPI
- fedora 44: flexiblas-devel 3.5.0-2.fc44 Β· LGPL-3.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms