2.7 local / 7 search

Merge Potential and Acceleration functions. Still need to optimize more
This commit is contained in:
Afonso Franco 2023-10-16 01:00:45 +01:00
parent da20f7966e
commit 44e386f674
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys
50 changed files with 5658 additions and 48 deletions

View file

@ -6,10 +6,10 @@ ts := $(shell /usr/bin/date "+%d-%m__%H_%M_%S")
.DEFAULT_GOAL = MD
MD: $(SRC)/MD.cpp
$(CC) $(CFLAGS) $(SRC)MD.cpp -lm -O2 -fopenmp -pg -o ./out/MD
$(CC) $(CFLAGS) $(SRC)MD.cpp -lm -O2 -ftree-vectorize -funroll-loops -pg -o ./out/MD
MDorig: $(SRC)/MD-original.cpp
$(CC) $(CFLAGS) $(SRC)MD-original.cpp -lm -O2 -fopenmp -pg -o ./out/MD-original
$(CC) $(CFLAGS) $(SRC)MD-original.cpp -lm -O2 -pg -o ./out/MD-original
clean:
rm ./out/* gmon.out
@ -21,9 +21,12 @@ runorig:
./out/MD-original < input/inputdata.txt
gprof:
gprof out/MD gmon.out > analysis/$(ts).txt
gprof out/MD gmon.out > analysis/$(ts).txt && gprof2dot analysis/$(ts).txt > analysis/$(ts).dot && xdot analysis/$(ts).dot
gproforig:
gprof out/MD-original gmon.out > analysis/$(ts).txt
runfull: clean MD run gprof
diff:
diff cp_output.txt cp_output-orig.txt
runfull: clean MD run