cs205-lecture-examples

Example codes used during Harvard CS205 lectures
git clone https://git.0xfab.ch/cs205-lecture-examples.git
Log | Files | Refs | README | LICENSE

Makefile (404B)


      1 CXX = mpic++
      2 CXXFLAGS = -O1 -Wall -Wextra -Wpedantic -DOMPI_SKIP_MPICXX
      3 .PHONY: clean
      4 
      5 all: blocking nonblocking
      6 
      7 run_blocking: blocking
      8 	rm -f u.dat
      9 	mpirun -n 4 ./blocking
     10 
     11 run_nonblocking: nonblocking
     12 	rm -f u.dat
     13 	mpirun -n 4 ./nonblocking
     14 
     15 blocking: blocking.cpp
     16 	$(CXX) $(CXXFLAGS) -o $@ $<
     17 
     18 nonblocking: nonblocking.cpp
     19 	$(CXX) $(CXXFLAGS) -o $@ $<
     20 
     21 clean:
     22 	rm -f u.dat u.png blocking nonblocking