Giter Club home page Giter Club logo

Comments (3)

grisuthedragon avatar grisuthedragon commented on June 8, 2024 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.

epsilon-0 avatar epsilon-0 commented on June 8, 2024

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.

grisuthedragon avatar grisuthedragon commented on June 8, 2024

Then I close this issue and some information on this will appear in the next release.

from flexiblas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.