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 (278B)


      1 CXX = mpic++
      2 CXXFLAGS = -O1 -Wall -Wextra -Wpedantic -DOMPI_SKIP_MPICXX
      3 .PHONY: clean
      4 
      5 run_nonblocking: clean nonblocking
      6 	mpirun -n 4 ./nonblocking
      7 	python plot.py
      8 
      9 nonblocking: nonblocking.cpp
     10 	$(CXX) $(CXXFLAGS) -o $@ $<
     11 
     12 clean:
     13 	rm -f u*.dat u*.bin u.png IO.png nonblocking