Comments (3)
The fun fact is, that there is no need to have them at compile time. Just create a file myblas.conf
in /etc/flexiblasrc.d
(or wherever your system-wide flexiblasrc lies) with the following content:
[NAMEOFTHEBLASLIBRARY]
library = /path/to/the/so/file/containing/the/blas/inferface.so
and check with flexiblas list
if they are now available.
The so-file have to contain the a normal NETLIB compatible BLAS interface and must include all its dependencies. If a BLAS symbols does not exists in the so-file it is automatically replaced by its NETLIB implementation.
For ATLAS that means you need the combined so as installed by Debian/Ubuntu as /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3
. So the file will look like
[ATLAS]
library = /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3
For OpenBLAS, just use the generated so file.
For BLIS, just use the generated so file, but it have to be compiled with the BLAS wrapper layer. (config option: --enable-blas
).
In case of the MKL its a bit tricky, since it consits of at least three so files that have to be combined such that they fit your requirements. Therefore, Intel provides a tool called mklbuilder. In my installation it is located in ${MKLROOT}/tools/build
. This is a makefile which can be used to generate a custom single so file variant of the MKL. For example with
make libintel64 export=blas_example_list interface=lp64 parallel=gnu threading=sequential name=flexiblas_mkl_sequential
One can generate such an so-file which includes the sequential version of the MKL as a single so file. This can be used in the config files. (The parallel=gnu
is required to tell the makefile to use the GNU Fotran interface instead of the Intel Fortran interface)
For fast tests is is enought to set the the FLEXIBLAS
environment variable to the absolute path of a so file which contains the desired BLAS.
As long as the names in the configfiles are unique, many different BLAS libraries of the same vendor could be defined. I use this to switch between OpenBLAS in sequential and OpenMP mode while developing software.
Does this help? I think I write a short readme in the next release abou this.
from flexiblas.
Does this help?
Yes, this was very informative! Thanks a lot!
I think I write a short readme in the next release abou this.
I'd really appreciate this as well, thanks!
from flexiblas.
Then I close this issue and some information on this will appear in the next release.
from flexiblas.
Related Issues (20)
- Build failure on macOS HOT 6
- Cross-compilation issues HOT 3
- Suffixed 64-bit integer symbols names HOT 17
- LAPACK 3.10.0 HOT 7
- building FlexiBLAS 3.0.4 with -DMKL_CUSTOM=ON fails HOT 5
- segmentation fault with numpy on POWER9 (only) when using FlexiBLAS HOT 13
- Static build of FlexiBLAS HOT 5
- flexiblas-openblas-openmp with OMP_PROC_BIND binds the program to a single core HOT 11
- 3.1.0 build failures HOT 11
- Int instead of int in standalone API HOT 3
- Wrong -verbose flag in CXXFLAGS HOT 2
- Documentation on switching backends HOT 8
- No LAPACK API version specified HOT 7
- Improving backend auto detection HOT 5
- Missing flexiblas-octave tar in release v3.2.0 HOT 2
- macOS support HOT 4
- Strange annocheck reports HOT 2
- macOS vecLib Accelerate Framework thread setting HOT 1
- Switch to explicit prototypes HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexiblas.