From d4f9ffd85d292cb08b3f87c71f223297ab388707 Mon Sep 17 00:00:00 2001 From: "Cristian C. Lalescu" <Cristian.Lalescu@mpcdf.mpg.de> Date: Fri, 17 May 2024 10:14:53 +0200 Subject: [PATCH] fixes for v3 --- CMakeLists.txt | 10 ++++++++++ cpp/fftw_tools.hpp | 1 + 2 files changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36eacbb7..1668fb5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,6 +149,16 @@ find_library( HINTS ${FFTW_LIBRARY_DIRS}) set(BFPS_LIBS ${FFTW_MPI} ${BFPS_LIBS}) +# hack for FFTW MPI libs +find_library( + FFTWF_THREADS fftw3f_threads + HINTS ${FFTW_LIBRARY_DIRS}) + set(BFPS_LIBS ${FFTWF_THREADS} ${BFPS_LIBS}) +find_library( + FFTW_THREADS fftw3_threads + HINTS ${FFTW_LIBRARY_DIRS}) + set(BFPS_LIBS ${FFTW_THREADS} ${BFPS_LIBS}) + ##################################################################################### ## Get the links and include from deps diff --git a/cpp/fftw_tools.hpp b/cpp/fftw_tools.hpp index b41cd2a4..d83b60fc 100644 --- a/cpp/fftw_tools.hpp +++ b/cpp/fftw_tools.hpp @@ -27,6 +27,7 @@ #include <mpi.h> #include <fftw3-mpi.h> #include <map> +#include <string> #ifndef FFTW_TOOLS -- GitLab