GlobalArrays/ga

cmake configuration with OpenBLAS fails

Closed this issue · 0 comments

I am trying to configure GA to use OpenBLAS on Ubuntu linux with the current develop branch

cmake   -DLINALG_VENDOR=OpenBLAS -DLINALG_PREFIX=/usr/lib/x86_64-linux-gnu/ -DENABLE_BLAS=ON -DLINALG_REQUIRED_COMPONENTS=lp64 ..

returns

-- BLAS_LIBRARIES Not Given: Will Perform Search
-- Found OpenBLAS: /usr/lib/x86_64-linux-gnu/libopenblas.a  found components: lp64 lp64
-- Performing Test BLAS_LOWER_UNDERSCORE
--   * Missing PThreads              - Adding to BLAS linker
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test BLAS_LOWER_UNDERSCORE -- found
-- Found BLAS: TRUE  found components: lp64
-- LAPACK_LIBRARIES Not Given: Checking for LAPACK in BLAS
-- Performing Test LAPACK_LOWER_UNDERSCORE
--   * Missing LIBM            - Adding to LAPACK linker
-- Performing Test LAPACK_LOWER_UNDERSCORE -- found
-- BLAS Has A Full LAPACK Linker
-- Found LAPACK: TRUE
-- Performing Test BLAS_LOWER_UNDERSCORE
-- Performing Test BLAS_LOWER_UNDERSCORE -- found
-- Found BLAS: TRUE
-- Using CMAKE_INSTALL_PREFIX = /usr/local
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
-- Not building CUDA support in BLAS++
-- Looking for HIP/ROCm
-- Not building HIP/ROCm support in BLAS++
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP_Fortran: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- blaspp_id = 72bfc6f
-- Looking for BLAS libraries and options
$BLAS_LIBRARIES
   libs:  /usr/lib/x86_64-linux-gnu/libopenblas.a;Threads::Threads
   -DBLAS_FORTRAN_ADD_                              yes

   Found BLAS library: /usr/lib/x86_64-linux-gnu/libopenblas.a;Threads::Threads
-- Checking BLAS library version
   OPENBLAS_VERSION= OpenBLAS 0.2.20
openblas_get_config=NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell

-- Checking BLAS complex return type
   BLAS (zdotc) returns complex (GNU gfortran convention)
-- Checking BLAS float return type
   BLAS (sdot) returns float as float (standard)
-- Checking for CBLAS library
   Found CBLAS library
-- Using CMAKE_INSTALL_PREFIX = /usr/local
-- lapackpp_id = 31d9692
-- Check for BLAS++
   BLAS++ already included
-- Looking for LAPACK libraries and options
CMake Error at /home/edo/sandb/ga-develop/b1/_deps/lapackpp-build/CMakeFiles/CMakeTmp/CMakeLists.txt:20 (add_executable):
  Target "cmTC_69c6c" links to target "OpenMP::OpenMP_CXX" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?