File tree 6 files changed +9
-11
lines changed
6 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,8 @@ def dense_bench():
235
235
print ("Dense xor NNZ = " , np .sum (xor_img != 0 ))
236
236
assert (sparse_xor_img .nnz == np .sum (xor_img != 1 ))
237
237
238
- @pytest .mark .skip (reason = "for getting the input matrices statistics only" )
238
+
239
+ #@pytest.mark.skip(reason="for getting the input matrices statistics only")
239
240
@pytest .mark .parametrize ("num" , list (range (1 , 253 )))
240
241
@pytest .mark .parametrize ("pt1" , [0.75 ])
241
242
def bench_edge_detection_statistics (tacoBench , num , pt1 ):
Original file line number Diff line number Diff line change 1
- mport numpy as np
1
+ import numpy as np
2
2
from scipy .sparse import random , csr_matrix
3
3
import sparse
4
4
import pytest
Original file line number Diff line number Diff line change 8
8
9
9
source /data/scratch/rohany/array-programming-benchmarks/venv/bin/activate
10
10
11
- out=image-bench/numpy
11
+ out=image-bench/
12
12
13
13
mkdir -p " $out "
14
14
mkdir -p " data/image/tensors"
15
15
16
- jsonout=" $out /result-numpy .json"
16
+ jsonout=" $out /image-bench-statistics-all .json"
17
17
18
- LANKA=ON NUMPY_JSON=" $jsonout " make python-bench BENCHES=" numpy/image.py"
18
+ LANKA=ON NUMPY_JSON=" $jsonout " make python-bench BENCHES=" numpy/image.py::bench_edge_detection_statistics "
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ out=image-bench/taco
10
10
11
11
mkdir -p " $out "
12
12
13
- for i in {1..98 }
13
+ for i in {1..253 }
14
14
do
15
15
csvout=" $out /result-taco-img$i .csv"
16
16
LANKA=ON IMAGE_NUM=" $i " TACO_TENSOR_PATH=" data/" TACO_OUT=" $csvout " make -j8 taco-bench BENCHES=" bench_image"
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ out=minmax-bench/numpy
13
13
mkdir -p " $out "
14
14
mkdir -p " data/minmax"
15
15
16
- jsonout=" $out /statistics-numpy .json"
16
+ jsonout=" $out /results-scipy-only .json"
17
17
18
- LANKA=ON NUMPY_JSON=" $jsonout " make python-bench BENCHES=" numpy/minmax.py::bench_pydata_minmax "
18
+ LANKA=ON NUMPY_JSON=" $jsonout " make python-bench BENCHES=" numpy/minmax.py::bench_scipy_minmax "
Original file line number Diff line number Diff line change @@ -92,9 +92,6 @@ static void bench_minimax(benchmark::State& state) {
92
92
// std::cout << result.getSource() << std::endl;
93
93
state.ResumeTiming ();
94
94
result.compute ();
95
- state.PauseTiming ();
96
- return_value = result ();
97
95
}
98
- state.counters [" return" ] = return_value;
99
96
}
100
97
TACO_BENCH (bench_minimax);
You can’t perform that action at this time.
0 commit comments