From 368cb4cc4a8899dfe5a8afb7a8eb2b7739a99bf6 Mon Sep 17 00:00:00 2001 From: Incardona Pietro <incardon@mpi-cbg.de> Date: Fri, 23 Apr 2021 22:28:09 +0200 Subject: [PATCH] Fixing compilation with mpi wrappers --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e15cb00..91d55d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,10 @@ find_package(HIP) if(HIP_FOUND) set(DEFINE_HIP_GPU "#define HIP_GPU") set(DEFINE_CUDIFY_USE_HIP "#define CUDIFY_USE_HIP") +else + #if not HIP we set the MPI wrappers + set(CMAKE_C_COMPILER mpicc) + set(CMAKE_CXX_COMPILER mpic++) endif() if(HIP_FOUND) -- GitLab