CMake error. Could NOT find Threads (missing: Threads_FOUND)

4,310 views
Skip to first unread message

Fabio Affinito

unread,
Sep 6, 2018, 4:11:05 PM9/6/18
to qmcpack
Dear all,

I'm trying to install QMCPack on D.A.V.I.D.E. cluster (http://www.hpc.cineca.it/content/davide), which is a Power8 + Tesla P100 system. For my build I'm using GNU 6.4.0 compilers and CUDA toolkit 9.2.88.

When I try to run the cmake:

 faffinit@davidefe02 davide-bld-gpu]$ cmake -DCMAKE_C_COMPILER="mpicc"  -DCMAKE_CXX_COMPILER="mpiCC" -DQMC_CUDA=1 -DLAPACK_LIBRARIES="/cineca/prod/opt/libraries/lapack/3.8.0/gnu--6.4.0" -DBLAS_LIBRARIES=$BLAS_HOME -DLIBXML2_LIBRARY="/davide/home/userinternal/faffinit/libxml2-2.9.8/lib/lib" -DLIBXML2_INCLUDE_DIR="/davide/home/userinternal/faffinit/libxml2-2.9.8/lib/include/"  ..

it fails with this "Could NOT find Threads (missing: Threads_FOUND)" error (see the error stack at the end of the message).

Do you have any hint?

Thank you in advance,

Fabio


-- QMC_SYMLINK_TEST_FILES = TRUE.  Using symbolic links for large test files may cause test failures if the build is installed on a separate filesystem from the source.  For example, Titan at OLCF.
-- CMAKE_BUILD_TYPE is RELEASE
-- defining the float point precision
   Base precision = double
   Full precision = double
   CUDA base precision = float
   CUDA full precision = double
-- LMY engine is not compatiable with CUDA build! Disabling LMY engine
-- Trying to figure out .....
-- Compiler: GNU
-- Could NOT find Threads (missing: Threads_FOUND)
-- Could NOT find Threads (missing: Threads_FOUND)
-- A library with LAPACK API found.
-- LAPACK libraries: /cineca/prod/opt/libraries/lapack/3.8.0/gnu--6.4.0
-- LAPACK linker flags:
-- No usable vector math library detected.
-- MPI runner is mpirun
-- CXX compiler flags: -std=c++11  -fopenmp -fomit-frame-pointer -finline-limit=1000 -fstrict-aliasing -funroll-all-loops -D__forceinline=inline -Wno-deprecated -march=native
-- CC  compiler flags:  -std=c99 -fopenmp -fomit-frame-pointer -finline-limit=1000 -fstrict-aliasing -funroll-all-loops -Wno-deprecated -march=native
-- FFTW_INCLUDE_DIR=/cineca/prod/opt/libraries/fftw/3.3.8/openmpi--3.1.0--gnu--6.4.0/include
-- FFTW_LIBRARIES=/cineca/prod/opt/libraries/fftw/3.3.8/openmpi--3.1.0--gnu--6.4.0/lib/libfftw3.a
-- Found FFTW
-- Trying libxml2 via LIBXML2_HOME
-- Locating Libxml2 via FIND_PACKAGE
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Using HDF5 non-scalable serial I/O due to the lack of library support for parallel
-- Boost version: 1.67.0
-- Setting Boost_INCLUDE_DIRS=/davide/home/userinternal/faffinit/boost_1_67_0
CMake Error at /davide/prod/opt/tools/cmake/3.11/none/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /davide/prod/opt/tools/cmake/3.11/none/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /davide/prod/opt/tools/cmake/3.11/none/share/cmake-3.11/Modules/FindThreads.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /davide/prod/opt/tools/cmake/3.11/none/share/cmake-3.11/Modules/FindCUDA.cmake:873 (find_package)
  CMakeLists.txt:653 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/davide/home/userinternal/faffinit/qmcpack-3.4.0/davide-bld-gpu/CMakeFiles/CMakeOutput.log".
See also "/davide/home/userinternal/faffinit/qmcpack-3.4.0/davide-bld-gpu/CMakeFiles/CMakeError.log".

Ye Luo

unread,
Sep 9, 2018, 10:53:16 PM9/9/18
to qmcpack
Ciao Fabio,

QMCPACK was built successfully on Minsky platform in the past. So we should be able to make it working without much effort.

The error message tells us that the threading library cannot be located. I actually never hit this issue in my 4-year experience with QMCPACK.
On linux machines, pthread is always available. So it never failed for me.
FindCUDA.cmake error is also requiring a thread library.

Another potential issue is due to the -march=native flag which is not valid for powerpc. This has been fixed in v3.5.0 release. So please try the most recent released version of QMCPACK.
Best,
Ye

在 2018年9月6日星期四 UTC-5下午3:11:05,Fabio Affinito写道:

Fabio Affinito

unread,
Sep 10, 2018, 3:59:42 AM9/10/18
to qmcpack
Hi Ye! 

Thanks for your suggestion. Moving to 3.5.0 release fixed the problem!

Best,

Fabio
Reply all
Reply to author
Forward
0 new messages