Started work on Potential
Unrolled powers removed duplicate array access on k for tried starting using omp parallel
This commit is contained in:
parent
898e7eeea7
commit
da20f7966e
31 changed files with 4777 additions and 0 deletions
29
Makefile
Normal file
29
Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
CC = gcc
|
||||
SRC = src/
|
||||
CFLAGS = # none
|
||||
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
|
||||
|
||||
MDorig: $(SRC)/MD-original.cpp
|
||||
$(CC) $(CFLAGS) $(SRC)MD-original.cpp -lm -O2 -fopenmp -pg -o ./out/MD-original
|
||||
|
||||
clean:
|
||||
rm ./out/* gmon.out
|
||||
|
||||
run:
|
||||
./out/MD < input/inputdata.txt
|
||||
|
||||
runorig:
|
||||
./out/MD-original < input/inputdata.txt
|
||||
|
||||
gprof:
|
||||
gprof out/MD gmon.out > analysis/$(ts).txt
|
||||
|
||||
gproforig:
|
||||
gprof out/MD-original gmon.out > analysis/$(ts).txt
|
||||
|
||||
runfull: clean MD run gprof
|
Loading…
Add table
Add a link
Reference in a new issue