Giter Site home page Giter Site logo

Comments (5)

weslleyspereira avatar weslleyspereira commented on August 30, 2024 1

Thanks for the attempts. I've come up with a simple solution:

cmake -D USE_OPTIMIZED_LAPACK_BLAS=ON -D BLA_VENDOR=OpenBLAS .. # configure step
cmake --build build # build step

from scalapack.

weslleyspereira avatar weslleyspereira commented on August 30, 2024

Hi. What is the content of OPENBLAS_LIB ? Could you please try the following:

$ export BLAS_LIB="$OPENBLAS_LIB -lpthread"
$ export LAPACK_LIB="$OPENBLAS_LIB -lpthread"
$ cmake . -D LAPACK_LIBRARIES=$LAPACK_LIB -D BLAS_LIBRARIES=$BLAS_LIB

As far as I understand, BLAS_LIBRARIES and LAPACK_LIBRARIES should contain all libraries needed for the optimized BLAS and LAPACK libraries to work.

from scalapack.

TiborGY avatar TiborGY commented on August 30, 2024

Hi. What is the content of OPENBLAS_LIB ?

~/nfs_zpool/scalapack$ echo $OPENBLAS_LIB
/mnt/nfsroot/libs/OpenBLAS_latest_zen/lib/libopenblas.a

Could you please try the following:

$ export BLAS_LIB="$OPENBLAS_LIB -lpthread"
$ export LAPACK_LIB="$OPENBLAS_LIB -lpthread"
$ cmake . -D LAPACK_LIBRARIES=$LAPACK_LIB -D BLAS_LIBRARIES=$BLAS_LIB

Does not work, cmake tries to interpret it instead of treating it as a string:

~/nfs_zpool/scalapack$ cmake . -D LAPACK_LIBRARIES=$LAPACK_LIB -D BLAS_LIBRARIES=$BLAS_LIB
CMake Error: Unknown argument -lpthread
CMake Error: Run 'cmake --help' for all supported options.

from scalapack.

weslleyspereira avatar weslleyspereira commented on August 30, 2024

I'm sorry. We're missing the double quotes. So:

$ cmake . -D LAPACK_LIBRARIES="$LAPACK_LIB" -D BLAS_LIBRARIES="$BLAS_LIB"

If it still does not work, I would replace -lpthread by the complete path for the pthread library.

This is what I would do. If it does not work, I can install OpenBLAS to try to help you.

from scalapack.

TiborGY avatar TiborGY commented on August 30, 2024

Defining the variables like this leads to other issues, CMake generates an invalid Makefile, where the name of the target includes the path to the BLAS lib.

[ 68%] Built target scalapack
Scanning dependencies of target xslu
[ 68%] Building Fortran object TESTING/LIN/CMakeFiles/xslu.dir/psludriver.f.o
[ 68%] Building Fortran object TESTING/LIN/CMakeFiles/xslu.dir/psluinfo.f.o
[ 69%] Building Fortran object TESTING/LIN/CMakeFiles/xslu.dir/psgetrrv.f.o
[ 69%] Building Fortran object TESTING/LIN/CMakeFiles/xslu.dir/psmatgen.f.o
[ 69%] Building Fortran object TESTING/LIN/CMakeFiles/xslu.dir/pmatgeninc.f.o
[ 69%] Building Fortran object TESTING/LIN/CMakeFiles/xslu.dir/pslaschk.f.o
[ 69%] Building Fortran object TESTING/LIN/CMakeFiles/xslu.dir/pslafchk.f.o
make[2]: *** No rule to make target '/mnt/nfsroot/libs/OpenBLAS_latest_zen/lib/libopenblas.a -lpthread', needed by 'TESTING/xslu'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:1260: TESTING/LIN/CMakeFiles/xslu.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

from scalapack.

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.