Skip to content

Commit

Permalink
Merge pull request #332 from EinsteinToolkit/rhaas/ci_openmp
Browse files Browse the repository at this point in the history
Refs/heads/rhaas/ci openmp
  • Loading branch information
lwJi authored Jan 29, 2025
2 parents ad15372 + 387f199 commit 907177d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
3 changes: 3 additions & 0 deletions scripts/actions-cpu-real32.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
OPENMP = yes
CPP_OPENMP_FLAGS = -fopenmp
FPP_OPENMP_FLAGS = -D_OPENMP
C_OPENMP_FLAGS = -fopenmp
CXX_OPENMP_FLAGS = -fopenmp
F90_OPENMP_FLAGS = -fopenmp
LD_OPENMP_FLAGS = -fopenmp

# -fanalyzer: finds only possible null dereferences in std::vector
WARN = yes
Expand Down
3 changes: 3 additions & 0 deletions scripts/actions-cpu-real64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
OPENMP = yes
CPP_OPENMP_FLAGS = -fopenmp
FPP_OPENMP_FLAGS = -D_OPENMP
C_OPENMP_FLAGS = -fopenmp
CXX_OPENMP_FLAGS = -fopenmp
F90_OPENMP_FLAGS = -fopenmp
LD_OPENMP_FLAGS = -fopenmp

# -fanalyzer: finds only possible null dereferences in std::vector
WARN = yes
Expand Down
6 changes: 5 additions & 1 deletion scripts/actions-cuda-real32.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CXX = nvcc -x cu
FPP = cpp
FC = gfortran
F90 = gfortran
LD = nvcc
LD = nvcc --forward-unknown-to-host-compiler --relocatable-device-code=true --objdir-as-tempdir

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

OPTIMISE = yes
C_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contract=fast -fno-math-errno -fno-rounding-math -fno-signaling-nans
Expand All @@ -55,7 +56,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
OPENMP = yes
CPP_OPENMP_FLAGS = -fopenmp
FPP_OPENMP_FLAGS = -D_OPENMP
C_OPENMP_FLAGS = -fopenmp
CXX_OPENMP_FLAGS = -fopenmp
F90_OPENMP_FLAGS = -fopenmp
LD_OPENMP_FLAGS = -fopenmp

# -fanalyzer: finds only possible null dereferences in std::vector
WARN = yes
Expand Down
6 changes: 5 additions & 1 deletion scripts/actions-cuda-real64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CXX = nvcc -x cu
FPP = cpp
FC = gfortran
F90 = gfortran
LD = nvcc
LD = nvcc --forward-unknown-to-host-compiler --relocatable-device-code=true --objdir-as-tempdir

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

OPTIMISE = yes
C_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contract=fast -fno-math-errno -fno-rounding-math -fno-signaling-nans
Expand All @@ -55,7 +56,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
OPENMP = yes
CPP_OPENMP_FLAGS = -fopenmp
FPP_OPENMP_FLAGS = -D_OPENMP
C_OPENMP_FLAGS = -fopenmp
CXX_OPENMP_FLAGS = -fopenmp
F90_OPENMP_FLAGS = -fopenmp
LD_OPENMP_FLAGS = -fopenmp

# -fanalyzer: finds only possible null dereferences in std::vector
WARN = yes
Expand Down
5 changes: 4 additions & 1 deletion scripts/actions-oneapi-real64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CXX = /opt/intel/oneapi/compiler/2025.0/bin/icpx
FPP = cpp
FC = gfortran
F90 = gfortran
LD = /opt/intel/oneapi/compiler/2025.0/bin/icpx
LD = /opt/intel/oneapi/compiler/2025.0/bin/icpx -fsycl

# -g # Debug information uses too much disk space on CI
CPPFLAGS = -DSIMD_DISABLE
Expand Down Expand Up @@ -54,7 +54,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
OPENMP = no
CPP_OPENMP_FLAGS = -fopenmp
FPP_OPENMP_FLAGS = -D_OPENMP
C_OPENMP_FLAGS = -fopenmp
CXX_OPENMP_FLAGS = -fopenmp
F90_OPENMP_FLAGS = -fopenmp
LD_OPENMP_FLAGS = -fopenmp

WARN = yes
CPP_WARN_FLAGS = -Wall
Expand Down
3 changes: 3 additions & 0 deletions scripts/actions-rocm-real64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ F90_OPTIMISE_FLAGS = -O3 -fcx-limited-range -fexcess-precision=fast -ffp-contrac
OPENMP = no
CPP_OPENMP_FLAGS = -fopenmp
FPP_OPENMP_FLAGS = -D_OPENMP
C_OPENMP_FLAGS = -fopenmp
CXX_OPENMP_FLAGS = -fopenmp
F90_OPENMP_FLAGS = -fopenmp
LD_OPENMP_FLAGS = -fopenmp

WARN = yes
CPP_WARN_FLAGS = -Wall
Expand Down

0 comments on commit 907177d

Please sign in to comment.