Skip to content
Snippets Groups Projects
Commit 7d2ddb8e authored by ESCOBAR Juan's avatar ESCOBAR Juan
Browse files

Juan 05/06/2024:Rules.LXnvhpc2202.mk, add correct Rules to not compile source...

Juan 05/06/2024:Rules.LXnvhpc2202.mk, add correct Rules to not compile source with "acc kernel" with "stdpar=gpu" ( could inhibe hand made parallelisation )
parent b832be4f
No related branches found
No related tags found
No related merge requests found
......@@ -357,11 +357,6 @@ $(PHYEX_LIST) : CPPFLAGS += -DPHYEX
else
PHYEX_IGNORE_KERNELS = $(notdir $(shell find PHYEX -name "*.f*" | xargs grep -l 'acc kernels' | sed -e 's/\(.*\)\(\.\).*/\1.D/g' ))
print_phyex_kernels:
@echo PHYEX_IGNORE_KERNELS=$(PHYEX_IGNORE_KERNELS)
PHYEX_OPTDEFAULT = --addMPPDB_CHECKS --addStack MESONH --stopScopes toto --mathFunctoBRFunc
# OK --expandAllArraysPHYEXConcurrent --addMPPDB_CHECKS --addStack MESONH --stopScopes toto
......@@ -403,22 +398,38 @@ PHYEX_PB_ALLARRAYS = phys_paramn.D turb.D lima.D mode_turb_hor_dyn_corr.D mode_t
$(PHYEX_PB_ALLARRAYS) : PYFT = pyft_tool.py --deleteDrHook --deleteBudgetDDH --addArrayParentheses --expandAllArraysPHYEXConcurrent $(PHYEX_OPTDEFAULT)
# --mathFunctoBRFunc
PHYEX_STDPAR += $(PHYEX_SHUMAN_PB)
PHYEX_STDPAR += $(PHYEX_PB_ALLARRAYS)
PHYEX_STDPAR += $(PHYEX_LIST)
#PHYEX_STDPAR0 += $(PHYEX_SHUMAN_PB)
#PHYEX_STDPAR0 += $(PHYEX_PB_ALLARRAYS)
#PHYEX_STDPAR0 = mode_turb_hor.D mode_turb_hor_splt.D turb.D
PHYEX_STDPAR0 = $(PHYEX_LIST)
PHYEX_IGNORE_KERNELS = $(notdir $(shell find PHYEX -name '*.f*' | xargs grep -l 'acc kernels' | sed -e 's/\(.*\)\(\.\).*/\1.D/g' ))
#PHYEX_IGNORE_KERNELS = mode_turb_hor_splt.D
print_phyex_ignore_kernels:
@echo PHYEX_IGNORE_KERNELS=$(PHYEX_IGNORE_KERNELS)
PHYEX_STDPAR = $(sort $(filter-out $(PHYEX_IGNORE_KERNELS), $(PHYEX_STDPAR0) ) )
#PHYEX_STDPAR += rain_ice_nucleation.D
PHYEX_STDPAR := $(sort $(filter-out $(PHYEX_IGNORE_KERNELS), $(PHYEX_STDPAR) ) )
PHYEX_STDPAR += rain_ice_nucleation.D
ifeq "$(DO_COMP_MASTER)" "YES"
PHYEX_STDPAR_TARGET = $(shell cd $(OBJDIR_MASTER) && egrep -hso '^\w+\.(o|mod)' $(PHYEX_STDPAR) )
PHYEX_STDPAR_TARGET = $(sort $(shell cd $(OBJDIR_MASTER) && egrep -hso '^\w+\.(o|mod)' $(PHYEX_STDPAR) ) )
#PHYEX_STDPAR_TARGET = $(shell cd $(OBJDIR_MASTER) && pwd && echo OBJDIR=$(OBJDIR_MASTER) && echo SUITE )
$(PHYEX_STDPAR_TARGET) : OPT := -g $(STDPAR) $(OPT_BASE) $(OPT_MANAGED) $(OPT_PERF2)
#PHYEX_STDPAR_TARGET = mode_turb_hor.mod spll_mode_turb_hor.o spll_turb.o
$(PHYEX_STDPAR_TARGET) : OPT = -g $(STDPAR) $(OPT_BASE) $(OPT_MANAGED) $(OPT_PERF2)
PHYEX_MANAGED_TARGET = $(sort $(shell cd $(OBJDIR_MASTER) && egrep -hso '^\w+\.(o|mod)' $(PHYEX_IGNORE_KERNELS) ) )
$(PHYEX_MANAGED_TARGET) : OPT = -g $(OPT_BASE) $(OPT_MANAGED) $(OPT_PERF2)
print_phyex_stdpar:
@echo OPT=$(OPT)
@echo PHYEX_STDPAR="' $(PHYEX_STDPAR) '"
@echo PHYEX_STDPAR_TARGET="' $(PHYEX_STDPAR_TARGET) '"
@echo PHYEX_MANAGED_TARGET="' $(PHYEX_MANAGED_TARGET) '"
endif
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment