From 7e91b2c62d01aa6d298cd2c4dff7c0b4b0947798 Mon Sep 17 00:00:00 2001 From: William Wang Date: Wed, 30 Aug 2023 13:15:29 -0400 Subject: [PATCH] [Benchmark] fix type error, add input parameter --- benchmarks/float/conjugate-gradient.bril | 8 ++++---- benchmarks/float/conjugate-gradient.prof | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmarks/float/conjugate-gradient.bril b/benchmarks/float/conjugate-gradient.bril index 5c0faea12..307fb148f 100644 --- a/benchmarks/float/conjugate-gradient.bril +++ b/benchmarks/float/conjugate-gradient.bril @@ -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 = call @get_sym n; @@ -16,8 +16,8 @@ br cond .for.set.body .for.set.end; .for.set.body: - idx_b: ptr = ptradd b i; - idx_x0: ptr = ptradd x0 i; + idx_b: ptr = ptradd b i; + idx_x0: ptr = ptradd x0 i; store idx_b v; store idx_x0 fone; diff --git a/benchmarks/float/conjugate-gradient.prof b/benchmarks/float/conjugate-gradient.prof index ba1f68d3f..c50fc198d 100644 --- a/benchmarks/float/conjugate-gradient.prof +++ b/benchmarks/float/conjugate-gradient.prof @@ -1 +1 @@ -total_dyn_inst: 2000 +total_dyn_inst: 1999