26 lines
No EOL
492 B
Makefile
26 lines
No EOL
492 B
Makefile
.PHONY: run clean
|
|
|
|
CFLAGS += -O3 -g
|
|
# CFLAGS += -DFMT_HEADER_ONLY
|
|
# LDFLAGS += $(shell pkg-config --libs fmt)
|
|
|
|
clean:
|
|
rm -f lpa
|
|
|
|
lpac: lpa.cpp
|
|
mpicc $(CFLAGS) $(LDFLAGS) -o $@ $<
|
|
|
|
lpa: lpa.cpp
|
|
mpic++ $(CFLAGS) $(LDFLAGS) -o $@ $<
|
|
|
|
run:
|
|
watchexec -c clear 'make lpa && mpirun -n 4 ./lpa dataset/both_1000.txt'
|
|
|
|
report.pdf: report.typ
|
|
typst compile $< $@
|
|
|
|
zhan4854.tar.gz: Makefile ASSIGNMENT.md lpa.cpp report.pdf
|
|
mkdir -p zhan4854
|
|
cp $^ zhan4854
|
|
tar -czvf $@ zhan4854
|
|
rm -r zhan4854
|