Commit e66f5948 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[refactor] have the benchmarks use the new tileids

Modify the benchmarks to use the new functions.
parent 55500ab0
Pipeline #6976 failed with stage
in 8 minutes and 32 seconds
...@@ -35,9 +35,9 @@ void do_work() ...@@ -35,9 +35,9 @@ void do_work()
{ {
size_t aoff, boff, coff; size_t aoff, boff, coff;
double *ap, *bp, *cp; double *ap, *bp, *cp;
aoff = i*ndims[1] + k; aoff = aml_tiling_tileid(&tiling_col, i, k);
boff = k*ndims[1] + j; boff = aml_tiling_tileid(&tiling_row, k, j);
coff = i*ndims[1] + j; coff = aml_tiling_tileid(&tiling_row, i, j);
ap = aml_tiling_tilestart(&tiling_col, a, aoff); ap = aml_tiling_tilestart(&tiling_col, a, aoff);
bp = aml_tiling_tilestart(&tiling_row, b, boff); bp = aml_tiling_tilestart(&tiling_row, b, boff);
cp = aml_tiling_tilestart(&tiling_row, c, coff); cp = aml_tiling_tilestart(&tiling_row, c, coff);
......
...@@ -53,7 +53,7 @@ void do_work() ...@@ -53,7 +53,7 @@ void do_work()
double *ap, *bp, *cp; double *ap, *bp, *cp;
ap = aml_tiling_tilestart(&tiling_row, prea, i); ap = aml_tiling_tilestart(&tiling_row, prea, i);
bp = aml_tiling_tilestart(&tiling_row, preb, j); bp = aml_tiling_tilestart(&tiling_row, preb, j);
coff = i*ndims[1] + j; coff = aml_tiling_tileid(&tiling_row, i, j);
cp = aml_tiling_tilestart(&tiling_row, c, coff); cp = aml_tiling_tilestart(&tiling_row, c, coff);
cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, ldc, lda, ldb, 1.0, ap, lda, bp, ldb, 1.0, cp, ldc); cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, ldc, lda, ldb, 1.0, ap, lda, bp, ldb, 1.0, cp, ldc);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment