diff --git a/Exec/Make.Maestro b/Exec/Make.Maestro index 3ab47ea3a..b6c5e36d3 100644 --- a/Exec/Make.Maestro +++ b/Exec/Make.Maestro @@ -56,6 +56,14 @@ endif include $(AMREX_HOME)/Tools/GNUMake/Make.defs +ifeq ($(USE_GPU),TRUE) + # We don't currently support host-side OpenMP being enabled + # when using GPUs. Throw an error to prevent this case. + ifeq ($(USE_OMP),TRUE) + $(error OpenMP is not supported by MAESTROeX when building with GPU support) + endif +endif + MAESTROEX_AUTO_SOURCE_DIR := $(TmpBuildDir)/maestroex_sources/$(optionsSuffix).EXE all: $(executable)