flexiblas_l...end_library(3)
π flexiblas_load_backend_library π
okay bestie, welcome to the FlexiBLAS Library manual β this one's about flexiblas_load_backend_library, and it's genuinely one of the most useful little gremlins in the whole API. buckle up. π
β¨ NAME β¨
flexiblas_load_backend_library β load a backend from a shared library.
no cap, that's the whole vibe. you point it at a shared library, it gives you a backend. π
πΈ SYNOPSIS πΈ
#include <flexiblas/flexiblas_api.h>
int flexiblas_load_backend_library(const char * libname );
and when you compile, you link with -lflexiblas, obviously. don't forget it, or the linker will simply not let you live. π«Ά
π¦ DESCRIPTION π¦
so here's the tea: flexiblas_load_backend_library loads a backend from a shared library. simple as that.
the libname parameter is where you spill β it specifies either a relative or an absolute path of a shared library containing a BLAS implementation. your call, both are valid, you're free.
and then β the important bit β except of some special backends, like the upcoming CUBLAS backend, the backend is initialized during the load. so for basically every normal case, it's loaded and spun up in one go. main character behaviour, honestly. π
β RETURN VALUE β
on success, it returns the id of the loaded backend β and that id is exactly what you feed into a later call to flexiblas_switch to actually change the backend. so like, keep it. don't lose it. it's your little ticket. ποΈ
if the requested backend can not be found in the configuration, an error is returned. sad girl hours. π
π ERRORS π
listen up because this one matters:
all negative return values are errors and can not be used as an id for flexiblas_switch. periodt.
so if you get a negative number back, do not β I repeat, do not β pass it to flexiblas_switch. that's not a backend id, bestie, that's the universe telling you something went wrong. π
π₯ SEE ALSO π₯
go read them, they're the friend group. β¨
π REPORTING BUGS π
the current information about the developers and reporting bugs can be found on the FlexiBLAS homepage. iykyk.
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, babe. this icon was brought to you by M. Koehler, 2013-2025, and it lives at flexiblas_l...end_library(3). slay, go load a backend. πβ¨πΈ
π¦ 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