Fase 1 final
This commit is contained in:
parent
fbfb16c650
commit
896eb08a5c
80 changed files with 55 additions and 9341 deletions
29
Makefile
29
Makefile
|
|
@ -1,35 +1,16 @@
|
|||
CC = gcc
|
||||
SRC = src/
|
||||
CFLAGS = # none
|
||||
ts := $(shell /usr/bin/date "+%d-%m__%H_%M_%S")
|
||||
|
||||
.DEFAULT_GOAL = MD
|
||||
.DEFAULT_GOAL = MD.exe
|
||||
|
||||
MD: $(SRC)/MD.cpp
|
||||
$(CC) $(CFLAGS) $(SRC)MD.cpp -lm -march=native -mavx -O2 -ftree-vectorize -funroll-loops -pg -g -o ./out/MD
|
||||
|
||||
MD-errors: $(SRC)/MD.cpp
|
||||
$(CC) $(CFLAGS) $(SRC)MD.cpp -lm -march=native -mtune=native -mavx -O2 -fopt-info-vec-all -ftree-vectorizer-verbose=2 -ftree-vectorize -funroll-loops -pg -g -o ./out/MD
|
||||
|
||||
MDorig: $(SRC)/MD-original.cpp
|
||||
$(CC) $(CFLAGS) $(SRC)MD-original.cpp -lm -O2 -pg -o ./out/MD-original
|
||||
MD.exe: $(SRC)/MD.cpp
|
||||
$(CC) $(CFLAGS) $(SRC)MD.cpp -lm -march=native -mtune=native -mavx -O2 -ftree-vectorize -funroll-loops -o MD.exe
|
||||
|
||||
clean:
|
||||
rm ./out/* gmon.out
|
||||
rm ./MD.exe
|
||||
|
||||
run:
|
||||
./out/MD < input/inputdata.txt
|
||||
|
||||
runorig:
|
||||
./out/MD-original < input/inputdata.txt
|
||||
|
||||
gprof:
|
||||
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
|
||||
|
||||
diff:
|
||||
diff cp_output.txt cp_output-orig.txt
|
||||
./MD.exe < inputdata.txt
|
||||
|
||||
runfull: clean MD run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue