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

Juan 19/08/2024:Rules.LXcray.mk, add DWARF = -gdwarf-4 option

parent c513a678
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@ CFV=$(shell crayftn --version | grep -E -m1 -o ' [[:digit:]\.]{2,}( |$$)' | sed
#
#OBJDIR_PATH=/home/escj/azertyuiopqsdfghjklm/wxcvbn/azertyuiopqsdfghjklmwxcvbn
#
OPT_BASE = -hpic -emf -h acc_model=auto_async_none:no_fast_addr:no_deep_copy -halias=none
DWARF ?= -gdwarf-4
OPT_BASE = -hpic -emf -h acc_model=auto_async_none:no_fast_addr:no_deep_copy -halias=none -N 1023 $(DWARF)
# -h acc_model=auto_async_none:no_fast_addr:no_deep_copy:unified_mem_all
OPT_PERF0 = -O0
OPT_PERF1 = -O1 -hflex_mp=intolerant -Ofp0 -hnofma -hnoomp -K trap=fp -hipa0
......@@ -56,7 +57,7 @@ ifeq "$(OPTLEVEL)" "DEBUG"
OPT = $(OPT_BASE) $(OPT_PERF0) $(OPT_CHECK)
OPT0 = $(OPT_BASE) $(OPT_PERF0) $(OPT_CHECK)
OPT_NOCB = $(OPT_BASE) $(OPT_PERF0)
CFLAGS += -g -gdwarf-4
CFLAGS += -g $(DWARF)
endif
#
ifeq "$(OPTLEVEL)" "OPENACC"
......@@ -142,8 +143,8 @@ endif
#
#
FC = ftn
FCFLAGS = -emf
CC=cc
FCFLAGS = -emf $(DWARF)
CC=gcc
CXX=CC
export FC CC FCFLAGS
ifeq "$(VER_MPI)" "MPIAUTO"
......@@ -198,7 +199,7 @@ endif
# Test of bitrep with OMP compilation
#
ifeq "$(MNH_BITREP_OMP)" "YES"
CXXFLAGS = -fopenmp
CXXFLAGS = -fopenmp $(DWARF)
CPPFLAGS_MNH += -DMNH_BITREP_OMP
DIR_MASTER += LIB/BITREP
VPATH += LIB/BITREP
......@@ -253,14 +254,14 @@ INC += $(NETCDF_DIR)/include
CDF_PATH = $(NETCDF_DIR)
else
NETCDF_SUPPFLAGS='-emf'
ECCODES_FFLAGS= -hcpu=x86-64 -emf
ECCODES_FFLAGS= -hcpu=x86-64 -emf $(DWARF)
# -hsystem_alloc
ECCODES_CFLAGS= -hcpu=x86-64 -gdwarf-4
#ECCODES_CFLAGS= -hcpu=x86-64 $(DWARF)
EC_CONF= -DCMAKE_BUILD_TYPE="RELEASE" -DIEEE_LE=1
CDF_CONF= CPP=cpp
HDF_CONF= CPP=cpp
HDF_OPT ?= -hcpu=x86-64
NETCDF_OPT ?= -hcpu=x86-64
#HDF_OPT ?= -hcpu=x86-64 $(DWARF)
#NETCDF_OPT ?= -hcpu=x86-64 $(DWARF)
endif
#
# Bypat nvidia70 problème
......
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