flexiblas_get_num_threads(3)
π flexiblas_get_num_threads(3) β the FlexiBLAS Library, bestie edition
okay so picture this: you're deep in FlexiBLAS, you need to know how many threads your backend is out here actually using for computation, and you just want a number, right? That's this. That's the whole thing. Welcome to flexiblas_get_num_threads(3), she's small but she's iconic. π
β¨ NAME β¨
flexiblas_get_num_threads β get the number of threads the backend uses for computation.
Like. Literally that. She tells you the thread count. No cap. π§΅β¨
πΈ SYNOPSIS πΈ
#include <flexiblas/flexiblas_api.h>
int flexiblas_get_num_threads();
and as weak aliases π«Ά
int openblas_get_num_threads();
int mkl_get_num_threads();
int blas_get_num_threads();
int acmlgetnumthreads();
Link with -lflexiblas.
bestie do NOT forget the -lflexiblas at link time, the linker will simply not know her and you will be sad π
π¦ DESCRIPTION π¦
So flexiblas_get_num_threads gets you the number of threads used for computation β if the backend supports this. That's the tea. If it does, cute, you get a number. π
The aliases exist for compatibility reasons with other BLAS implementations like Intel MKL, OpenBLAS, or AMD ACML. So if your code was written for one of those and you're sliding into FlexiBLAS, the vibes are preserved and the function names still hit. iykyk. π
π ERRORS π
If the backend does not support it, one is returned.
That's it. That's the error handling. Not a fancy error code, not a negative number, just a humble 1. So like, heads up: a backend that genuinely has one thread and a backend that can't answer at all look the same from out here. π Not me pointing that out but I'm pointing that out.
π 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? Go tell the devs, they wanna know, fr fr. π
π AUTHORS π
Martin Koehler, Jens Saak
Absolute legends, both of them. π«Ά
π 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.
the NO WARRANTY part is in all caps in the original for a reason bestie, it means it. software comes as-is, periodt. π
okay that's the whole page, go get your thread count and slay β¨ Written by M. Koehler, dated 2013-2025, and that's flexiblas_get_num_threads(3) out. bye bestie ππ¦π
π¦ 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