Open
Description
Hi
Trying to build with CMake 3.20.5 i got the following problem:
Singularity> cmake -S . -B build -DWarpX_DIMS=2 -DWarpX_COMPUTE=HIP -DAMReX_GPU_BACKEND=HIP -DCMAKE_CXX_COMPILER=hipcc -DAMReX_AMD_ARCH="gfx908" -DMPI_C_COMPILER=mpicc -DMPI_CXX_COMPILER=mpicxx -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/openmpi -DCMAKE_INSTALL_PREFIX=../warpx_install ../warpx_src
-- The C compiler identification is Clang 13.0.0
-- The CXX compiler identification is Clang 13.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/rocm/llvm/bin/clang - 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: /opt/rocm/bin/hipcc - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find CCache
-- Downloading AMReX ...
-- AMReX repository: https://github.com/AMReX-Codes/amrex.git (18d0a2861d31c52c65752a1d5856f54e08699ce3)
-- CMake version: 3.20.5
-- AMReX installation directory: /lustre/rz/dbertini/gpu/warpx/warpx_install
-- Build type set by user to 'Release'.
-- Building AMReX with AMReX_SPACEDIM = 2
-- Configuring AMReX with the following options enabled:
-- AMReX_PRECISION = DOUBLE
-- AMReX_GPU_BACKEND = HIP
-- AMReX_MPI
-- AMReX_MPI_THREAD_MULTIPLE
-- AMReX_LINEAR_SOLVERS
-- AMReX_PARTICLES
-- AMReX_PARTICLES_PRECISION = DOUBLE
-- AMReX_TINY_PROFILE
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so (found version "3.1")
-- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS)
CMake Error at /usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find MPI (missing: MPI_CXX_FOUND CXX) (found version "3.1")
Call Stack (most recent call first):
/usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.20/Modules/FindMPI.cmake:1742 (find_package_handle_standard_args)
/lustre/rz/dbertini/gpu/warpx/warpx_build/build/_deps/fetchedamrex-src/Tools/CMake/AMReXParallelBackends.cmake:21 (find_package)
/lustre/rz/dbertini/gpu/warpx/warpx_build/build/_deps/fetchedamrex-src/Src/CMakeLists.txt:14 (include)
Any idea why the MPI_CXX compiler is claimed to be not found ?