GithubHelp home page GithubHelp logo

Building with OpenBLAS/BLIS about dftd4 HOT 4 CLOSED

dftd4 avatar dftd4 commented on June 15, 2024
Building with OpenBLAS/BLIS

from dftd4.

Comments (4)

awvwgk avatar awvwgk commented on June 15, 2024

We need to add an explicit case for both libraries with the la_backend option. Should be fc.find_library('openblas') and fc.find_library('blis') in meson.build than.

I will give it a try when I am done with #4. But feel free to open a pull request.

from dftd4.

zerothi avatar zerothi commented on June 15, 2024

Please don't do find_library('openblas') the problem is that sometimes the suffix for the libraries depend on the threading in the library.

Any kind of overwriting with env-vars would be greatly appreciated :)
Or do the above find_library, but also the env-var ;)

Thanks!

(PS. I have never done a project in Meson, so I can't be of much help)

from dftd4.

awvwgk avatar awvwgk commented on June 15, 2024

meson has a rather explicit style for the configuration, usually you are not supposed to set environment variable other than the compilers.

Could you be more specific on what you need? I could implement a get_option('la_backend') == 'custom' and a list with user-provided paths at configure time that will be used for linking, is this more suitable?

Since I am usually working with MKL I have not much experience with OpenBLAS.

from dftd4.

zerothi avatar zerothi commented on June 15, 2024

Yes, this would be ideal.
Basically it would be nice to:

  1. Specify an additional library path (LD_LIBRARY_PATH) or an explicit -L<path> added to the compilation line
  2. Specify an additional library used at the linking step, -lopenblas_omp for instance. :)

from dftd4.

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.