Git Product home page Git Product logo

Comments (9)

vmalia avatar vmalia commented on September 15, 2024 1

@ducbueno
Can you try the command with an additional CMake definitions -DBUILD_SHARED_LIBS=ON -DCBLAS=ON ? By default LAPACK build system sets these to OFF (line 48 & line 242 of https://github.com/Reference-LAPACK/lapack/blob/master/CMakeLists.txt), which is why you only get *.a static libraries and missing cblas.

from onemkl.

vmalia avatar vmalia commented on September 15, 2024

@ducbueno Can you please post your build command? Did you define REF_BLAS_ROOT in your CMake command?

from onemkl.

ducbueno avatar ducbueno commented on September 15, 2024

@vmalia I did define REF_BLAS_ROOT in my cmake command. I tried two ways:

  1. Installing lapack as instructed in its Git (that is, installing it at $HOME/.local) and running the following cmake command:

cmake .. -DREF_BLAS_ROOT=/home/ducbueno/.local/lapack

  1. Installing lapack with root privileges and running the following cmake command:

cmake .. -DREF_BLAS_ROOT=/usr/local/lib (I'm not sure if this is correct though. I tried it since the lapack libraries were installed in this directory.)

from onemkl.

NadyaTen avatar NadyaTen commented on September 15, 2024

Hello,
Cmake is looking for libcblas.so, libblas.so files. Do you have them in REF_BLAS_ROOT (REF_BLAS_ROOT/lib, REF_BLAS_ROOT/lib64) directory?

And btw, are you using latest revision of master?

from onemkl.

vmalia avatar vmalia commented on September 15, 2024

cmake .. -DREF_BLAS_ROOT=/usr/local/lib (I'm not sure if this is correct though. I tried it since the lapack libraries were installed in this directory.)

@ducbueno
Can you try cmake .. -DREF_BLAS_ROOT=/usr/local ? Since correct path to REF_BLAS_ROOT is the path that contains lib folder, which in-turn contains libblas.so and libcblas.so as mentioned by @NadyaTen

Same applies to other dependency variables. You can check the Find{module}.cmake file in cmake/ directory of the project too, if you get undefined variable errors.

from onemkl.

ducbueno avatar ducbueno commented on September 15, 2024

Something is not adding up here. By following the installation instructions on the lapack Git (https://github.com/Reference-LAPACK/lapack) I get only the libblas.a and liblapack.a files.

When I run sudo find / -name 'libcblas.so' and sudo find / -name 'libblas.so' I get nothing.

Is there any other way of installing these libraries? I'm running Ubuntu by the way.

And @NadyaTen I think I'm using the latest revision, I've cloned the repository in the standard way (git clone https://github.com/oneapi-src/oneMKL.git).

from onemkl.

ducbueno avatar ducbueno commented on September 15, 2024

I was able to install libblas.so with sudo apt-get install libblas-dev, but still no results for sudo find / -name 'libcblas.so'.

from onemkl.

ducbueno avatar ducbueno commented on September 15, 2024

@vmalia thanks a lot! That solved the issue.

I'm still very new to CMake, so that was not obvious at all to me.

from onemkl.

vmalia avatar vmalia commented on September 15, 2024

@vmalia thanks a lot! That solved the issue.

I'm still very new to CMake, so that was not obvious at all to me.

Happy to help and glad to have you here :)
Closing the issue now.

from onemkl.

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.