Skip to content

Commit

Permalink
[Benchmark] fix type error, add input parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
willwng committed Aug 30, 2023
1 parent 8434f25 commit 7e91b2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions benchmarks/float/conjugate-gradient.bril
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Conjugate gradient method to solve Ax=b. Currently A is a 3x3 diagonal with
# incrementing values, but any arbitrary spd A can be used

@main() {
n :int = const 3;
# ARGS: 3
@main(n: int) {
one: int = const 1;
fone: float = const 1;
a :ptr<float> = call @get_sym n;
Expand All @@ -16,8 +16,8 @@
br cond .for.set.body .for.set.end;

.for.set.body:
idx_b: ptr<int> = ptradd b i;
idx_x0: ptr<int> = ptradd x0 i;
idx_b: ptr<float> = ptradd b i;
idx_x0: ptr<float> = ptradd x0 i;

store idx_b v;
store idx_x0 fone;
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/float/conjugate-gradient.prof
Original file line number Diff line number Diff line change
@@ -1 +1 @@
total_dyn_inst: 2000
total_dyn_inst: 1999

0 comments on commit 7e91b2c

Please sign in to comment.