2022-03-11 17:52:38 +00:00
|
|
|
|
|
|
|
CPP=g++
|
|
|
|
MPICPP=mpic++
|
|
|
|
CPPFLAGS= -std=c++17 -O3 -Wall -Wpedantic -pedantic
|
|
|
|
OUT=main
|
|
|
|
|
|
|
|
seriel: main.cpp Matrix.h Solver.h
|
|
|
|
$(CPP) main.cpp $(CPPFLAGS) -o $(OUT)_seriel
|
|
|
|
|
|
|
|
mpi: main.cpp Matrix.h Solver.h
|
|
|
|
$(MPICPP) main.cpp $(CPPFLAGS) -DUSE_MPI -o $(OUT)_mpi
|
|
|
|
|
|
|
|
all: seriel mpi
|
|
|
|
|
2022-03-12 16:09:57 +00:00
|
|
|
test: seriel
|
2022-03-11 17:52:38 +00:00
|
|
|
./$(OUT)_seriel 120 10
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o main $(OUT)_seriel $(OUT)_mpi
|