dev-cafe / autocmake

CMake plugin composer.
http://autocmake.org
BSD 3-Clause "New" or "Revised" License
41 stars 18 forks source link

GNU blas/lapack integer64 detection #259

Open miroi opened 4 years ago

miroi commented 4 years ago

Hi Rado,

as I see, GNU libraries lapack and blas are supporting integer-64 bit installation. Would be good to have math detection for 64bit integers.

milias@adf2:~/work/software/dirac_suite/trunk/.ls /lib64/libblas64.so
/lib64/libblas64.so@
milias@adf2:~/work/software/dirac_suite/trunk/.ls /lib64/liblapack64.so
/lib64/liblapack64.so@
miroi commented 4 years ago

With DIRAC, buildup with explicit setting:

milias@adf2:~/work/software/dirac_suite/trunk/../setup --cmake-executable=cmake3 --int64  --blas=off  --lapack=off --explicit-libs="/lib64/libblas64.so /lib64/liblapack64.so "  build_gnu_i8
cmake3 -DCMAKE_Fortran_COMPILER=gfortran -DEXTRA_FCFLAGS="''" -DCMAKE_C_COMPILER=gcc -DEXTRA_CFLAGS="''" -DCMAKE_CXX_COMPILER=g++ -DEXTRA_CXXFLAGS="''" -DPREPROCESSOR_DEFINITIONS="''" -DPYTHON_INTERPRETER="''" -DENABLE_BLAS=off -DENABLE_LAPACK=off -DMKL_FLAG=off -DMATH_LIB_SEARCH_ORDER="MKL;ESSL;OPENBLAS;ATLAS;ACML;SYSTEM_NATIVE" -DBLAS_LANG=Fortran -DLAPACK_LANG=Fortran -DENABLE_MPI=False -DENABLE_OPENMP=False -DENABLE_CODE_COVERAGE=False -DENABLE_STATIC_LINKING=False -DENABLE_PROFILING=False -DENABLE_RUNTIMECHECK=False -DENABLE_64BIT_INTEGERS=True -DEXPLICIT_LIBS="/lib64/libblas64.so /lib64/liblapack64.so" -DENABLE_PCMSOLVER=ON -DPCMSOLVER_ROOT='' -DCMAKE_BUILD_TYPE=release -G"Unix Makefiles" -H/home/milias/work/software/dirac_suite/trunk -Bbuild_gnu_i8
bast commented 4 years ago

Interesting! Yes I agree that this would be nice to support. I will soon return to this project and revive it.