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


      1 CXX = mpic++
      2 CXXFLAGS = -O1 -Wall -Wextra -Wpedantic -DOMPI_SKIP_MPICXX
      3 .PHONY: clean
      4 
      5 all: mpi_rsend mpi_irsend
      6 
      7 run_rsend: mpi_rsend
      8 	mpirun -n 2 ./mpi_rsend
      9 
     10 run_irsend: mpi_irsend
     11 	mpirun -n 2 ./mpi_irsend
     12 
     13 mpi_rsend: mpi_rsend.cpp
     14 	$(CXX) $(CXXFLAGS) -o $@ $<
     15 
     16 mpi_irsend: mpi_irsend.cpp
     17 	$(CXX) $(CXXFLAGS) -o $@ $<
     18 
     19 clean:
     20 	rm -f mpi_rsend mpi_irsend