Skip to content

Commit

Permalink
Check for heffte host backends at configure
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Oct 15, 2024
1 parent 7c8a622 commit 162d1a1
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 162d1a1

Please sign in to comment.