MDS/Makefile

34 lines
609 B
Makefile
Raw Permalink Normal View History

2024-01-10 02:47:17 +00:00
CFLAGS = -march=native -mtune=native -O2 -ftree-vectorize -mavx
CC = gcc
SRC = src/
2024-01-10 02:47:17 +00:00
.DEFAULT_GOAL = all
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
clean:
2024-01-10 02:47:17 +00:00
rm ./MD*.exe
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