From 1e859bc2ae1c3732de07824acd8a6dcdcb8af314 Mon Sep 17 00:00:00 2001 From: Dorian Stoll <dorian.stoll@uni-potsdam.de> Date: Thu, 13 Jun 2024 07:05:19 +0200 Subject: [PATCH] rodinia-srad: julia: Allow calling the program directly --- src/benchmarks/rodinia-srad/julia/srad.jl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/benchmarks/rodinia-srad/julia/srad.jl b/src/benchmarks/rodinia-srad/julia/srad.jl index 3f97a0d9..50734a32 100755 --- a/src/benchmarks/rodinia-srad/julia/srad.jl +++ b/src/benchmarks/rodinia-srad/julia/srad.jl @@ -37,10 +37,10 @@ function main(args) niter = parse(Int32,args[8]) size_R = (r2 - r1 + 1) * (c2 - c1 + 1); - - iN::Array{Int32,1} = [i-1 for i in 1:rows] + + iN::Array{Int32,1} = [i-1 for i in 1:rows] iS::Array{Int32,1} = [i+1 for i in 1:rows] - jW::Array{Int32,1} = [j-1 for j in 1:cols] + jW::Array{Int32,1} = [j-1 for j in 1:cols] jE::Array{Int32,1} = [j+1 for j in 1:cols] iN[1] = 1 iS[rows] = rows @@ -62,7 +62,7 @@ function main(args) println("Start the SRAD main loop") tic() - + sum::Float32 = 0 sum2::Float32 = 0 for iter in 1:niter @@ -146,3 +146,4 @@ function main(args) end end +main(ARGS) -- GitLab