Skip to content

Commit

Permalink
Introduced DUMPAST.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Oct 15, 2024
1 parent 9c9a7bc commit 60ad12f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions config/cp2k/Linux-x86-64-intelx.arch
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ endif

# DEFAULTS
#
DUMPAST ?= 0
SSE ?= 0
AVX ?= 0
MPI ?= 1
OMP ?= 1
DBG ?= 0
DBG ?= $(DUMPAST)
SYM ?= $(DBG)
FPE ?= 0
IPO ?= 0
Expand Down Expand Up @@ -562,7 +563,7 @@ else # GNU GCC
endif
OPT ?= 3
else # debug
FCFLAGS += \
FCFLAGS += -fstrict-aliasing -fbacktrace -fbounds-check \
-fimplicit-none -fsanitize=leak -fcheck=all -finit-derived -finit-real=snan -finit-integer=-42 -finline-matmul-limit=0 \
-Werror=aliasing -Werror=ampersand -Werror=c-binding-type -Werror=intrinsics-std -Werror=line-truncation -Werror=tabs \
-Werror=target-lifetime -Werror=underflow -Werror=unused-but-set-variable -Werror=conversion -Werror=unused-variable \
Expand All @@ -575,6 +576,11 @@ else # GNU GCC
endif
OPT ?= 0
endif
ifneq (0,$(DUMPAST))
FCFLAGS += -fdump-fortran-original
FCLOGPIPE = > $(notdir $<).ast
export LC_ALL=C
endif
ifneq (0,$(FPE))
FCFLAGS += -ffpe-trap=invalid,zero,overflow -fsignaling-nans
CFLAGS += -fsignaling-nans
Expand Down

0 comments on commit 60ad12f

Please sign in to comment.