KMP-MPI/makefile

33 lines
1.5 KiB
Makefile
Raw Permalink Normal View History

2021-03-27 11:32:38 +00:00
sequential: src/sequential.c src/util.c src/kmp.c build
2021-03-27 13:30:18 +00:00
gcc -std=c99 src/kmp.c src/util.c src/sequential.c -o build/kmp-s.out
2021-03-27 11:32:38 +00:00
sequential-time: src/sequential.c src/util.c src/kmp.c build
2021-03-27 13:31:47 +00:00
gcc -std=c99 -D TIME src/kmp.c src/util.c src/sequential.c /usr/local/lib/libpapi.a -o build/kmp-st.out
2021-03-27 11:32:38 +00:00
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
2021-04-13 15:15:40 +00:00
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
2021-03-27 11:32:38 +00:00
parallel-time: src/parallel.c src/util.c src/kmp.c build
2021-03-27 13:34:52 +00:00
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
2021-03-27 11:32:38 +00:00
2021-04-13 15:15:40 +00:00
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
2021-03-27 11:32:38 +00:00
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
2021-04-13 15:15:40 +00:00
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
2021-04-07 13:08:40 +00:00
parallel-mpe: src/parallel.c src/util.c src/kmp.c build
2021-04-07 13:10:16 +00:00
mpecc -std=c99 -mpilog -lpthread src/parallel.c src/util.c src/kmp.c -lm -o build/kmp-mpe.out
2021-04-07 13:08:40 +00:00
2021-04-13 15:15:40 +00:00
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
2021-03-27 11:32:38 +00:00
build:
mkdir build