KMP-MPI/makefile
2021-03-27 12:32:38 +01:00

19 lines
682 B
Makefile

sequential: src/sequential.c src/util.c src/kmp.c build
gcc src/kmp.c src/util.c src/sequential.c -o build/kmp-s.out
sequential-time: src/sequential.c src/util.c src/kmp.c build
gcc -D TIME src/kmp.c src/util.c src/sequential.c -o build/kmp-st.out
parallel: src/parallel.c src/util.c src/kmp.c build
mpicc -std=c99 src/parallel.c src/util.c src/kmp.c -lm -o build/kmp-p.out
parallel-time: src/parallel.c src/util.c src/kmp.c build
mpicc -std=c99 -D TIME src/parallel.c src/util.c src/kmp.c -lm -o build/kmp-p.out
parallel-log: src/parallel.c src/util.c src/kmp.c build
mpicc -std=c99 -D LOG src/parallel.c src/util.c src/kmp.c -lm -o build/kmp-pl.out
build:
mkdir build