Skip to content

Commit

Permalink
abort the build if we try to compile with GPU + OpenMP (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored May 15, 2024
1 parent f8781bf commit fefeff1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Exec/Make.Maestro
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fefeff1

Please sign in to comment.