FINAL
This commit is contained in:
parent
b84aa107de
commit
a8b0b317a4
10 changed files with 5638 additions and 70 deletions
33
Makefile
33
Makefile
|
|
@ -1,16 +1,33 @@
|
|||
CFLAGS = -march=native -mtune=native -O2 -ftree-vectorize -mavx
|
||||
CC = gcc
|
||||
SRC = src/
|
||||
CFLAGS = -march=native -mtune=native -mavx -O2 -ftree-vectorize -fopenmp
|
||||
|
||||
.DEFAULT_GOAL = MD.exe
|
||||
.DEFAULT_GOAL = all
|
||||
|
||||
MD.exe: $(SRC)/MD2.cpp
|
||||
$(CC) $(CFLAGS) $(SRC)MD2.cpp -lm -o MD.exe
|
||||
all: MDseq.exe MDpar.exe
|
||||
|
||||
MDseq.exe: $(SRC)/MDseq.cpp
|
||||
module load gcc/11.2.0;
|
||||
$(CC) $(CFLAGS) $(SRC)MDseq.cpp -lm -o MDseq.exe
|
||||
|
||||
MDpar.exe: $(SRC)/MDpar.cpp
|
||||
module load gcc/11.2.0;
|
||||
$(CC) $(CFLAGS) $(SRC)MDpar.cpp -lm -fopenmp -o MDpar.exe
|
||||
|
||||
#FASE 3
|
||||
MDvec.exe: $(SRC)/MDvec.cpp
|
||||
module load gcc/11.2.0;
|
||||
$(CC) $(CFLAGS) $(SRC)MDvec.cpp -lm -fopenmp -o MDvec.exe
|
||||
|
||||
clean:
|
||||
rm ./MD.exe
|
||||
rm ./MD*.exe
|
||||
|
||||
|
||||
runseq:
|
||||
./MDseq.exe < inputdata.txt
|
||||
|
||||
runpar:
|
||||
OMP_NUM_THREADS=24 ./MDpar.exe < inputdata.txt
|
||||
|
||||
run:
|
||||
./MD.exe < inputdata.txt
|
||||
|
||||
runfull: clean MD run
|
||||
sbatch run.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue