GithubHelp home page GithubHelp logo

Comments (7)

wolfv avatar wolfv commented on August 20, 2024 1

awesome, exactly that's what's needed. We usually use a cmake-based build system, so I responded with the CMake instructions, sorry.

We are planning to document much better how to properly link against BLAS and LAPACK.

Note that by just appending -llapack -lblas I am not sure which library your compiler will pick (i.e. the one in the conda environment or your systems one, if you have one installed). You might want to pass additional flags to make sure that you're picking the right one if you are concerned about that.

from xtensor-blas.

SylvainCorlay avatar SylvainCorlay commented on August 20, 2024

Thanks for reporting. dgetrf is a symbol from BLAS< so it seems that it is not finding the BLAS library.

I will look into your example tomorrow (it is getting late here).

from xtensor-blas.

wolfv avatar wolfv commented on August 20, 2024

Did you add something along the lines of

    find_package(BLAS REQUIRED)
    find_package(LAPACK REQUIRED)

    target_link_libraries(PUT_TARGET_NAME_HERE ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES})

to your CMakeLists? It looks to me like you're not linking a BLAS implementation

from xtensor-blas.

wolfv avatar wolfv commented on August 20, 2024

Or rather, LAPACK (since taking the inverse of a matrix calls the dgetrf routine of the LAPACK library).

from xtensor-blas.

yashaach avatar yashaach commented on August 20, 2024

Sorry do you mean adding these during manual installation of xtensor-blas (and therefore do not use 'conda install -c conda-forge xtensor-blas") ? For building my own library it is still the same "python setup.py build" right?

from xtensor-blas.

yashaach avatar yashaach commented on August 20, 2024

Oh I think the following method works -- add libraries=['lapack', 'blas'], to Extension in ext_modules, in setup.py of the xtensor-example-extension. I believe this adds the flags -llapack -lblas in the last step of the build when python setup.py build is called.

from xtensor-blas.

wolfv avatar wolfv commented on August 20, 2024

I am going to close this issue and open a new one for the documentation.

from xtensor-blas.

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.