From c678b2aafe89404229bbcec0de737b727e5e2d5d Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Wed, 15 May 2024 14:50:11 -0400 Subject: [PATCH] abort the build if we try to compile with GPU + OpenMP --- Exec/Make.Maestro | 8 ++++++++ 1 file changed, 8 insertions(+) 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)