flexiblas_list(3)
π flexiblas_list(3) β The FlexiBLAS Library π
okay bestie, pull up a chair, because we're about to talk about flexiblas_list, and honestly? she's a whole vibe. this page is from the FlexiBLAS manual, section 3, and she's here to tell you exactly which backends you've got chilling in your config. no gatekeeping. π
β¨ NAME β¨
flexiblas_list β list available backends. that's it, that's the job. iconic behavior fr fr π
πΈ SYNOPSIS πΈ
#include <flexiblas/flexiblas_api.h>
int flexiblas_list(char *name, size_t len, int pos Link with
-lflexiblas.
(yeah, the line wrapping on that last bit is a little feral, but it's what the page says, so we're keeping it exactly. no notes. π)
π¦ DESCRIPTION π¦
so, flexiblas_list hands you the tea about all the available FlexiBLAS backends. here's the lowdown:
- if you set the buffer
nametoNULL, she doesn't give you a name β she gives you the number of available backends in the FlexiBLAS configuration files. like a little headcount. β¨ - otherwise,
namehas to be a character buffer of sizelen, andpostells her which entry you want back. she copies the backend name into your buffernamewith a length of at mostlen, and returns the real length of the backend name. the copy itself happens withstrncpy, with a maximum length oflen. no cap. π«Ά
theposparameter is valid in a range from0..B-1, whereBis the number of backends you got back from your first call toflexiblas_listwith aNULLbuffer. so do the headcount first, bestie, don't just start guessing indexes. π
β οΈ and listen β if your buffer is not large enough, meaning the return value equalslen-1, then the name you got back can not be used in other FlexiBLAS API calls likeflexiblas_load_backend. it's giving truncated. don't do it. π
π₯ RETURN VALUE π₯
on success, she returns the number of entries in the FlexiBLAS configuration if name==NULL, or the length of the returned name using strlen. slay. π
in case of an error, like an out-of-range index pos, a negative number comes back. that's your sign something went wrong. π¨
π ERRORS π
all negative return values are errors. every single one. if it's negative, it's not cute, it's a problem. periodt. π
π EXAMPLE π
here's how you list all available backends, bestie. chef's kiss. π
π Program Source
#include <stdio.h>
#include <flexiblas/flexiblas_api.h>
int main ( int argc, char **argv ) {
char buffer[512];
int n, pos;
n = flexiblas_list(NULL, 0, 0);
for ( pos = 0; pos < n; pos++ ) {
flexiblas_list(buffer, 512, pos);
printf("[%2d] %s\n", pos, buffer);
}
return 0;
}
π SEE ALSO π
π§ REPORTING BUGS π§
the current info about the developers and reporting bugs can be found on the FlexiBLAS homepage. go say hi, they're lovely.
FlexiBLAS Homepage: <http://www.mpi-magdeburg.mpg.de/projects/flexiblas>
π 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.
and that's the whole page, bestie!! π this one was written by M. Koehler, and the page is dated 2013-2025, living under the name flexiblas_list(3). go forth and list those backends, you absolute main character. π¦β¨πΈ
π¦ 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