Skip to content

Commit

Permalink
[APP] Fix hexagon_benchmarks build (use two-var prefetch) (#6563)
Browse files Browse the repository at this point in the history
* Fix hexagon_benchmark build (use two-var prefetch)

* tweak indent
  • Loading branch information
masahi authored Jan 18, 2022
1 parent cf4565b commit 77de08c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/hexagon_benchmarks/conv3x3_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Conv3x3 : public Generator<Conv3x3> {
.vectorize(xi)
.unroll(yi);
if (use_prefetch_sched) {
output.prefetch(input, y, 2);
output.prefetch(input, y, y, 2);
}
if (use_parallel_sched) {
Var yo;
Expand Down
2 changes: 1 addition & 1 deletion apps/hexagon_benchmarks/dilate3x3_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Dilate3x3 : public Generator<Dilate3x3> {
.vectorize(xi)
.unroll(yi);
if (use_prefetch_sched) {
output.prefetch(input, y, 2);
output.prefetch(input, y, y, 2);
}
if (use_parallel_sched) {
Var yo;
Expand Down
2 changes: 1 addition & 1 deletion apps/hexagon_benchmarks/gaussian5x5_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Gaussian5x5 : public Generator<Gaussian5x5> {
.vectorize(xi)
.unroll(yi);
if (use_prefetch_sched) {
output.prefetch(input, y, 2);
output.prefetch(input, y, y, 2);
}
if (use_parallel_sched) {
Var yo;
Expand Down
2 changes: 1 addition & 1 deletion apps/hexagon_benchmarks/median3x3_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Median3x3 : public Generator<Median3x3> {
.vectorize(xi)
.unroll(yi);
if (use_prefetch_sched) {
output.prefetch(input, y, 2);
output.prefetch(input, y, y, 2);
}
if (use_parallel_sched) {
Var yo;
Expand Down
2 changes: 1 addition & 1 deletion apps/hexagon_benchmarks/sobel_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Sobel : public Generator<Sobel> {
.vectorize(xi)
.unroll(yi);
if (use_prefetch_sched) {
output.prefetch(input, y, 2);
output.prefetch(input, y, y, 2);
}
if (use_parallel_sched) {
Var yo;
Expand Down

0 comments on commit 77de08c

Please sign in to comment.