2024-01-10 02:47:17 +00:00
|
|
|
CFLAGS = -march=native -mtune=native -O2 -ftree-vectorize -mavx
|
2023-10-15 00:56:00 +01:00
|
|
|
CC = gcc
|
|
|
|
SRC = src/
|
|
|
|
|
2024-01-10 02:47:17 +00:00
|
|
|
.DEFAULT_GOAL = all
|
2023-10-15 00:56:00 +01:00
|
|
|
|
2024-01-10 02:47:17 +00:00
|
|
|
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
|
2023-10-15 00:56:00 +01:00
|
|
|
|
|
|
|
clean:
|
2024-01-10 02:47:17 +00:00
|
|
|
rm ./MD*.exe
|
2023-10-15 00:56:00 +01:00
|
|
|
|
2023-10-16 01:00:45 +01:00
|
|
|
|
2024-01-10 02:47:17 +00:00
|
|
|
runseq:
|
|
|
|
./MDseq.exe < inputdata.txt
|
|
|
|
|
|
|
|
runpar:
|
|
|
|
OMP_NUM_THREADS=24 ./MDpar.exe < inputdata.txt
|
|
|
|
|
|
|
|
run:
|
|
|
|
sbatch run.sh
|