KMP-MPI/makefile
2021-04-13 17:15:40 +02:00

33 lines
1.5 KiB
Makefile

sequential: src/sequential.c src/util.c src/kmp.c build
gcc -std=c99 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 -std=c99 -D TIME src/kmp.c src/util.c src/sequential.c /usr/local/lib/libpapi.a -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-2: src/parallel-v2.c src/util.c src/kmp.c build
mpicc -std=c99 src/parallel-v2.c src/util.c src/kmp.c -lm -o build/kmp-p-2.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 /usr/local/lib/libpapi.a -lm -o build/kmp-pt.out
parallel-time-2: src/parallel-v2.c src/util.c src/kmp.c build
mpicc -std=c99 -D TIME src/parallel-v2.c src/util.c src/kmp.c /usr/local/lib/libpapi.a -lm -o build/kmp-pt-2.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
parallel-log-2: src/parallel-v2.c src/util.c src/kmp.c build
mpicc -std=c99 -D LOG src/parallel-v2.c src/util.c src/kmp.c -lm -o build/kmp-pl-2.out
parallel-mpe: src/parallel.c src/util.c src/kmp.c build
mpecc -std=c99 -mpilog -lpthread src/parallel.c src/util.c src/kmp.c -lm -o build/kmp-mpe.out
parallel-mpe-2: src/parallel-v2.c src/util.c src/kmp.c build
mpecc -std=c99 -mpilog -lpthread src/parallel-v2.c src/util.c src/kmp.c -lm -o build/kmp-mpe-2.out
build:
mkdir build