csci5451/assignments/03/Makefile

13 lines
239 B
Makefile
Raw Normal View History

2023-11-25 02:05:20 +00:00
.PHONY: run clean
2023-11-22 07:58:05 +00:00
2023-11-25 02:05:20 +00:00
CFLAGS += -DFMT_HEADER_ONLY
LDFLAGS += $(shell pkg-config --libs fmt)
clean:
rm lpa
lpa: lpa.cpp
mpic++ $(CFLAGS) $(LDFLAGS) -o $@ -g $<
2023-11-22 07:58:05 +00:00
run:
2023-11-25 02:05:20 +00:00
watchexec -c clear 'make lpa && mpirun -n 4 ./lpa dataset/both_1000.txt'