File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,9 @@ static void bench_suitesparse_ufunc(benchmark::State& state, Func op) {
243
243
auto ssTensor = readIntoType<int64_t >(" ssTensor" , tensorPath, CSR);
244
244
auto other = shiftLastMode<int64_t , int64_t >(" other" , ssTensor);
245
245
246
+ state.counters [" dimx" ] = ssTensor.getDimension (0 );
247
+ state.counters [" dimy" ] = ssTensor.getDimension (1 );
248
+
246
249
for (auto _ : state) {
247
250
state.PauseTiming ();
248
251
Tensor<int64_t > result (" result" , ssTensor.getDimensions (), ssTensor.getFormat ());
@@ -259,9 +262,8 @@ static void bench_suitesparse_ufunc(benchmark::State& state, Func op) {
259
262
static void applySuiteSparse (benchmark::internal::Benchmark* b) {
260
263
std::vector<int64_t > args (ssTensors.tensors .size ());
261
264
for (int i = 0 ; i < ssTensors.tensors .size (); i++) {
262
- args[i] = i ;
265
+ b-> Arg (i) ;
263
266
}
264
- b->ArgsProduct ({args});
265
267
}
266
268
267
269
TACO_BENCH_ARGS (bench_suitesparse_ufunc, xor , xorOp)->Apply(applySuiteSparse);
You can’t perform that action at this time.
0 commit comments