Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for heffte host backends at configure #796

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading