Skip to content

Commit

Permalink
Merge pull request #796 from streeve/heffte_config
Browse files Browse the repository at this point in the history
Check for heffte host backends at configure
  • Loading branch information
streeve authored Dec 9, 2024
2 parents 86b41a2 + 162d1a1 commit 8d396b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ set_package_properties(HYPRE PROPERTIES TYPE OPTIONAL PURPOSE "Used for structur
# find heffte
Cabana_add_dependency( PACKAGE Heffte VERSION 2.3.0 )
set_package_properties(Heffte PROPERTIES TYPE OPTIONAL PURPOSE "Used for fft calculations")
if(HEFFTE_FOUND)
# ensure at least one host backend is enabled
if(NOT Heffte_ENABLE_FFTW AND NOT Heffte_ENABLE_MKL)
message(FATAL_ERROR "Cabana heFFTe support requires at least one host backend (FFTW or MKL).")
endif()
endif()

# find Silo
Cabana_add_dependency( PACKAGE SILO )
Expand Down

0 comments on commit 8d396b5

Please sign in to comment.