Skip to content

Commit 2fb7330

Browse files
authored
scripts: update config file (#55)
1 parent ac18216 commit 2fb7330

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

scripts/actions-cpu-real64.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
4545
OPENMP = yes
4646
CPP_OPENMP_FLAGS = -fopenmp
4747
FPP_OPENMP_FLAGS = -D_OPENMP
48+
C_OPENMP_FLAGS = -fopenmp
49+
CXX_OPENMP_FLAGS = -fopenmp
4850
F90_OPENMP_FLAGS = -fopenmp
51+
LD_OPENMP_FLAGS = -fopenmp
4952

5053
# -fanalyzer: finds only possible null dereferences in std::vector
5154
WARN = yes

scripts/actions-cuda-real64.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CXX = nvcc -x cu
1313
FPP = cpp
1414
FC = gfortran
1515
F90 = gfortran
16-
LD = nvcc
16+
LD = nvcc --forward-unknown-to-host-compiler --relocatable-device-code=true --objdir-as-tempdir
1717

1818
CPPFLAGS = -DSIMD_DISABLE
1919
CFLAGS = -pipe -g -std=gnu11
@@ -46,6 +46,7 @@ C_DEBUG_FLAGS = -fbounds-check -fsanitize=undefined -fstack-protector-all -ftrap
4646
CXX_DEBUG_FLAGS = -fbounds-check -fsanitize=undefined -fstack-protector-all -ftrapv
4747
FPP_DEBUG_FLAGS = -DCARPET_DEBUG
4848
F90_DEBUG_FLAGS = -fcheck=bounds,do,mem,pointer,recursion -finit-character=65 -finit-integer=42424242 -finit-real=nan -fsanitize=undefined -fstack-protector-all -ftrapv
49+
LD_DEBUG_FLAGS = -fsanitize=undefined
4950

5051
OPTIMISE = yes
5152
C_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contract=fast -fno-math-errno -fno-rounding-math -fno-signaling-nans
@@ -55,7 +56,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
5556
OPENMP = yes
5657
CPP_OPENMP_FLAGS = -fopenmp
5758
FPP_OPENMP_FLAGS = -D_OPENMP
59+
C_OPENMP_FLAGS = -fopenmp
60+
CXX_OPENMP_FLAGS = -fopenmp
5861
F90_OPENMP_FLAGS = -fopenmp
62+
LD_OPENMP_FLAGS = -fopenmp
5963

6064
# -fanalyzer: finds only possible null dereferences in std::vector
6165
WARN = yes

scripts/actions-rocm-real64.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
5252
OPENMP = no
5353
CPP_OPENMP_FLAGS = -fopenmp
5454
FPP_OPENMP_FLAGS = -D_OPENMP
55+
C_OPENMP_FLAGS = -fopenmp
56+
CXX_OPENMP_FLAGS = -fopenmp
5557
F90_OPENMP_FLAGS = -fopenmp
58+
LD_OPENMP_FLAGS = -fopenmp
5659

5760
WARN = yes
5861
CPP_WARN_FLAGS = -Wall

0 commit comments

Comments
 (0)