blob: 5b2367b5f742e923354636d142ca5ed00970d64d (
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
|
all: spmv
spmv: app.c
gcc -Wall -Wextra -pedantic -march=native -O2 -o spmv -fopenmp app.c
spmv_O0: app.c
gcc -o spmv_O0 -fopenmp app.c
spmv_O2: app.c
gcc -O2 -o spmv_O2 -fopenmp app.c
run: spmv
OMP_NUM_THREADS=4 ./spmv -f ../../data/bcsstk30.mtx -v 0
run_O0: spmv_O0
OMP_NUM_THREADS=4 ./spmv_O0 -f ../../data/bcsstk30.mtx -v 0
run_O2: spmv_O2
OMP_NUM_THREADS=4 ./spmv_O2 -f ../../data/bcsstk30.mtx -v 0
clean:
rm -f spmv spmv_O0 spmv_O2
.PHONY: all run run_O0 run_O2 clean
|