Comments (5)
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.
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.
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.
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.
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)
- MPI not linked during build? HOT 9
- Adopt a conservative ABI / SOVERSION policy HOT 1
- xshseqr and xdhseqr fail with FPE if run in parallel HOT 4
- build errors on GCC 10 (gfortran) HOT 2
- Wrong lwmin in pdstedc HOT 1
- Compiling With mpich ERROR undefined reference to `MPI_Type_free' HOT 1
- Input parameters checks in p?potri don't work. HOT 1
- Compilation issue - missing function definitions? HOT 8
- Instaled library maintains RUNPATH HOT 2
- MpiInt is wrong and should be removed HOT 3
- Wrong description of punmrq, punmlq functions
- use CMAKE_INSTALL_LIBDIR to allow for library installation in multiarch contexts HOT 1
- p*trrfs not listed in SRC/Makefile or SRC/CMakeLists.txt HOT 1
- Wrong pdlapiv or pdlapv2 output in ScaLAPACK HOT 2
- 2.2.1 release HOT 1
- Argument mismatches
- Build fails with strict-aliasing violations.
- CMake issues for building scalapack with VS2022 in windows
- Build failed due to implicit declaration HOT 2
- Wrong output for `igebs2d`, `igebr2d` (matrix broadcast) in ScaLAPACK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalapack.