flexiblas_set_num_threads(3)

πŸ“¦
version 3.5.0 Β· 3 versions
, in fedora 43, fedora 44

✨ 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 (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