Skip to content
Snippets Groups Projects
Verified Commit 1e859bc2 authored by Dorian Stoll's avatar Dorian Stoll
Browse files

rodinia-srad: julia: Allow calling the program directly

parent 3f88094c
No related branches found
No related tags found
No related merge requests found
...@@ -37,10 +37,10 @@ function main(args) ...@@ -37,10 +37,10 @@ function main(args)
niter = parse(Int32,args[8]) niter = parse(Int32,args[8])
size_R = (r2 - r1 + 1) * (c2 - c1 + 1); 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] 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] jE::Array{Int32,1} = [j+1 for j in 1:cols]
iN[1] = 1 iN[1] = 1
iS[rows] = rows iS[rows] = rows
...@@ -62,7 +62,7 @@ function main(args) ...@@ -62,7 +62,7 @@ function main(args)
println("Start the SRAD main loop") println("Start the SRAD main loop")
tic() tic()
sum::Float32 = 0 sum::Float32 = 0
sum2::Float32 = 0 sum2::Float32 = 0
for iter in 1:niter for iter in 1:niter
...@@ -146,3 +146,4 @@ function main(args) ...@@ -146,3 +146,4 @@ function main(args)
end end
end end
main(ARGS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment