33 lines
609 B
Makefile
33 lines
609 B
Makefile
CFLAGS = -march=native -mtune=native -O2 -ftree-vectorize -mavx
|
|
CC = gcc
|
|
SRC = src/
|
|
|
|
.DEFAULT_GOAL = all
|
|
|
|
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
|
|
|
|
|
|
runseq:
|
|
./MDseq.exe < inputdata.txt
|
|
|
|
runpar:
|
|
OMP_NUM_THREADS=24 ./MDpar.exe < inputdata.txt
|
|
|
|
run:
|
|
sbatch run.sh
|