Cmake compailation issue with KaHIP

I am trying to install the MPM code in ubuntu-18.04. I have followed all the mentioned procedures. There’re some problems when compiling MPM like below. (Photo attached)
my cmake version is 3.18.2.

(base) debasis@debasis-Inspiron-3542:~$ cd mpm && mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=g++ /home/debasis/mpm

– The CXX compiler identification is GNU 9.3.0

– Detecting CXX compiler ABI info

– Detecting CXX compiler ABI info - done

– Check for working CXX compiler: /usr/bin/g++ - skipped

– Detecting CXX compile features

– Detecting CXX compile features - done

– Found Boost: /usr/include (found version “1.65.1”) found components: filesystem system

– Found Eigen3: /usr/include/eigen3 (Required is at least version “2.91.0”)

– Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version “3.1”)

– Found MPI: TRUE (found version “3.1”)

– The C compiler identification is GNU 9.3.0

– Detecting C compiler ABI info

– Detecting C compiler ABI info - done

– Check for working C compiler: /usr/bin/cc - skipped

– Detecting C compile features

– Detecting C compile features - done

– HDF5: Using hdf5 compiler wrapper to determine CXX configuration

– Found HDF5: /home/debasis/anaconda3/lib/libhdf5_cpp.so;/home/debasis/anaconda3/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/debasis/anaconda3/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version “1.10.4”) found components: CXX HL

– Found OpenMP_C: -fopenmp (found version “4.5”)

– Found OpenMP_CXX: -fopenmp (found version “4.5”)

– Found OpenMP: TRUE (found version “4.5”)

– Looking for pthread.h

– Looking for pthread.h - found

– Performing Test CMAKE_HAVE_LIBC_PTHREAD

– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success

– Found Threads: TRUE

– Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARIES)

– Checking for package ‘KaHIP’

CMake Error at cmake/FindPackageHandleStandardArgs.cmake:137 (message):

KaHIP could not be found/configured. (missing: KAHIP_LIBRARIES

KAHIP_INCLUDE_DIRS KAHIP_TEST_RUNS)

Call Stack (most recent call first):

cmake/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)

cmake/FindKaHIP.cmake:140 (find_package_handle_standard_args)

CMakeLists.txt:106 (find_package)

– Configuring incomplete, errors occurred!

See also “/home/debasis/mpm/build/CMakeFiles/CMakeOutput.log”.

I have then followed the group discussion on this and installed KaHIP by using the commands below.

cd ~/workspace/ && git clone https://github.com/schulzchristian/KaHIP && \ cd KaHIP && sh ./compile_withcmake.sh

cmake -DCMAKE_BUILD_TYPE=Release -DKAHIP_ROOT=~/workspace/KaHIP/ …

Still, I am unable to resolve this problem. Again, it is showing KaHIP not found.

Thanks, the current workaround is:



git clone https://github.com/kahip/kahip
cd kahip
git checkout 78d2bb0a2c8cb396fed45710a4292034fffdaf83
sh ./compile_withcmake.sh

2 Likes