Skip to content

Commit

Permalink
Merge pull request #35 from luszczek/backend/ffte
Browse files Browse the repository at this point in the history
Add Fortran-specific build for FFTE
  • Loading branch information
luszczek authored Apr 7, 2022
2 parents a4c0ffd + b47c6f5 commit 3dadc1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.10)

project("FIBER" VERSION 0.1 LANGUAGES C CXX)
# Most project code is in C. SWFFT needs C++. 2DECOMP&FFT and FFTE need Fortran
project("FIBER" VERSION 0.1 LANGUAGES C CXX Fortran)

#################
# Default Options
Expand Down
6 changes: 5 additions & 1 deletion benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ macro(fiber_add_benchmark fiber_benchmark)
target_link_libraries(${fiber_benchmark} p3dfft.3 stdc++ fftw3 fftw3f)
endif()
if (FIBER_ENABLE_FFTE)
target_link_libraries(${fiber_benchmark} fftempi ffte mpifort gfortran)
target_link_libraries(${fiber_benchmark} fftempi ffte ${MPI_Fortran_LIBRARIES} ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES})
endif()
if (FIBER_ENABLE_SWFFT)
target_link_libraries(${fiber_benchmark} fiber_swfft)
Expand All @@ -50,6 +50,10 @@ macro(fiber_add_mpi_test)
unset(_fiber_COMMAND)
endmacro()

if (FIBER_ENABLE_FFTE)
link_directories(${CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES})
endif()

fiber_add_benchmark(test3D_CPU_R2C)
fiber_add_benchmark(test3D_CPU_C2C)
fiber_add_benchmark(Bench_3D_C2C_CPU)
Expand Down

0 comments on commit 3dadc1a

Please sign in to comment.