blt icon indicating copy to clipboard operation
blt copied to clipboard

BLT "Cannot find" MPI which is visible

Open drmichaeltcvx opened this issue 4 months ago • 0 comments

Hello,

I am building thirdPartyLibraries for GEOS using

  • GCC 11.4.1
  • HPC_X (v2.20), Open MPI (v4.1.7a1)
  • CUDA 12.5, on
  • Alma9 (RHEL-like Linux)

Even though OpenMPI stack is visible,:

$ mpirun -version
mpirun (Open MPI) 4.1.7a1

Report bugs to http://www.open-mpi.org/community/help/
$ mpicc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-host-pie --enable-host-bind-now --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugs.almalinux.org/ --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-plugin --enable-initfini-array --without-isl --enable-multilib --with-linker-hash-style=gnu --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_64=x86-64-v2 --with-arch_32=x86-64 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.1 20231218 (Red Hat 11.4.1-3) (GCC) 

The configuration framework which uses BLT is reporting it cannot find MPI :

-- The C compiler identification is GNU 11.4.1
-- The CXX compiler identification is GNU 11.4.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- BLT Version: 0.6.2
-- CMake Version: 3.28.3
-- CMake Build Type: RelWithDebInfo
-- CMake Executable: /data/saet/mtml/software/x86_64/cmake-3.28.3-linux-x86_64/bin/cmake
-- Setting CMAKE_CXX_EXTENSIONS to OFF
-- Standard C++17 selected
-- Standard C++17 selected for CUDA
-- BLT MPI support is ON
-- BLT OpenMP support is ON
-- BLT CUDA support is ON
-- BLT HIP support is OFF
-- Creating BLT MPI targets...
-- FindMPI Enabled  (ENABLE_FIND_MPI == ON)
-- Could NOT find MPI_C (missing: MPI_C_WORKS) 
-- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS) 
CMake Error at /data/saet/mtml/software/x86_64/cmake-3.28.3-linux-x86_64/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
Call Stack (most recent call first):
  /data/saet/mtml/software/x86_64/cmake-3.28.3-linux-x86_64/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /data/saet/mtml/software/x86_64/cmake-3.28.3-linux-x86_64/share/cmake-3.28/Modules/FindMPI.cmake:1837 (find_package_handle_standard_args)
  cmake/blt/cmake/thirdparty/BLTSetupMPI.cmake:43 (find_package)
  cmake/blt/cmake/BLTSetupTargets.cmake:75 (include)
  cmake/blt/cmake/SetupThirdParty.cmake:6 (include)
  cmake/blt/SetupBLT.cmake:129 (include)
  CMakeLists.txt:30 (include)

Is there way to identify what is failing in the BLT macro tests ?

Thanks!

drmichaeltcvx avatar Oct 10 '24 04:10 drmichaeltcvx