blob: b0b9a868aa72ceb50e6b98307d0291a3c1676e99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
all: streamp_openmp
streamp_openmp: streamp_openmp.cpp tools.cpp
g++ -O2 streamp_openmp.cpp tools.cpp -o streamp_openmp -std=c++11 -fopenmp
streamp_openmp_O0: streamp_openmp.cpp tools.cpp
g++ streamp_openmp.cpp tools.cpp -o streamp_openmp_O0 -std=c++11 -fopenmp
streamp_openmp_O2: streamp_openmp.cpp tools.cpp
g++ -O2 streamp_openmp.cpp tools.cpp -o streamp_openmp_O2 -std=c++11 -fopenmp
run: streamp_openmp
./streamp_openmp inputs/randomlist33M.txt 256
# may need OMP_NUM_THREADS=32 (≈ tinos) -- does not work with 88 threads @ ios
run_O0: streamp_openmp_O0
./streamp_openmp_O0 inputs/randomlist33M.txt 256
run_O2: streamp_openmp_O2
./streamp_openmp_O2 inputs/randomlist33M.txt 256
clean:
rm -f streamp_openmp streamp_openmp_O0 streamp_openmp_O2
.PHONY: all run run_O0 run_O2 clean
|