Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Updated compiler flags for gfortran
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Oct 10, 2021
1 parent dc7cc31 commit 9860062
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile.Defines
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ IPRODUCTION = -no-wrap-margin -O3 -qopt-prefetch=0 -sox $(PAR) $(SIMDVEC) #$(HEA

#gfortran flags
GDEBUG = -g -Og -fbacktrace -fbounds-check -ffree-line-length-none
GPAR = -fopenmp #-ftree-parallelize-loops=4
GPAR = -fopenmp -ftree-parallelize-loops=4
GMEM = -fsanitize-address-use-after-scope -fstack-check -fsanitize=bounds-strict -fsanitize=undefined -fsanitize=signed-integer-overflow -fsanitize=object-size -fstack-protector-all
GWARNINGS = -Wall -Warray-bounds -Wimplicit-interface -Wextra -Warray-temporaries
GPRODUCTION = -O3 -ffree-line-length-none $(GPAR)
Expand All @@ -74,12 +74,14 @@ GPRODUCTION = -O3 -ffree-line-length-none $(GPAR)
AR = xiar

FORTRAN = gfortran
FFLAGS = $(GDEBUG) # $(GMEM) $(GPAR)
#FFLAGS = $(GPRODUCTION) -g -fbacktrace -fcheck=all #-Wall AR = ar # DO NOT include in CFLAGS the "-c" option to compile object only
#FFLAGS = $(GDEBUG) $(GMEM) #$(GPAR)
FFLAGS = $(GPRODUCTION) #-g -fbacktrace -fcheck=all #-Wall
FSTRICTFLAGS= $(GPRODUCTION) #-g -fbacktrace -fcheck=all #-Wall
AR = ar # DO NOT include in CFLAGS the "-c" option to compile object only
# this is done explicitly as needed in the Makefile

CC = icc
#CC = cc
#CC = icc
CC = cc
CFLAGS = -O3 -w -m64 -std=c99

64_BIT_REALS = -r8
Expand Down

0 comments on commit 9860062

Please sign in to comment.