Make some changes
This commit is contained in:
@@ -8,7 +8,7 @@ CLASSOBJS=$(CLASSSRCS:.cpp=.o)
|
||||
|
||||
INCLUDE=../include
|
||||
|
||||
CFLAGS=-Wall -larmadillo -lblas -llapack -std=c++11 -O3
|
||||
CFLAGS=-Wall -larmadillo -lblas -llapack -std=c++11 -O3 -fomit-frame-pointer
|
||||
OPENMP=-fopenmp
|
||||
|
||||
# Add a debug flag when compiling (For the DEBUG macro in utils.hpp)
|
||||
@@ -19,6 +19,7 @@ else
|
||||
DBGFLAG=
|
||||
endif
|
||||
|
||||
# Add profiling for serial code
|
||||
PROFILE ?= 0
|
||||
ifeq ($(PROFILE), 1)
|
||||
PROFFLAG=-pg -fno-inline-functions
|
||||
@@ -30,6 +31,7 @@ endif
|
||||
|
||||
all: test_suite main
|
||||
|
||||
# Instrumentation using scorep for parallel analysis
|
||||
instrument:
|
||||
scorep $(CC) -c PenningTrap.cpp -o PenningTrap.o $(CFLAGS) $(DBGFLAG) $(PROFFLAG) -I$(INCLUDE) $(OPENMP)
|
||||
scorep $(CC) -c Particle.cpp -o Particle.o $(CFLAGS) $(DBGFLAG) $(PROFFLAG) -I$(INCLUDE) $(OPENMP)
|
||||
|
||||
Reference in New Issue
Block a user