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

rodinia-srad: julia: Fix more errors

parent 44e4bd4a
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,10 @@ function main(args)
println(STDERR,"rows and cols must be mutiples of 16")
exit(1)
end
r1 = parse(Int32,args[3]) + 1
r2 = parse(Int32,args[4]) + 1
c1 = parse(Int32,args[5]) + 1
c2 = parse(Int32,args[6]) + 1
r1 = parse(Int32,args[3])
r2 = parse(Int32,args[4])
c1 = parse(Int32,args[5])
c2 = parse(Int32,args[6])
lambda = parse(Float32,args[7])
niter = parse(Int32,args[8])
......@@ -78,18 +78,18 @@ function main(args)
sum2 = 0
for i in r1:r2
for j in c1:c2
tmp = J[i,j]
tmp = J[i + 1,j + 1]
sum += tmp
sum2 += tmp * tmp
end
end
meanROI::Float32 = sum / size_R
varROI::Float32 = (sum / size_R) - meanROI * meanROI
varROI::Float32 = (sum2 / size_R) - meanROI * meanROI
q0sqr::Float32 = varROI / (meanROI * meanROI)
Threads.@threads for i in 1:size(J,1)
for j in size(J,2)
for j in 1:size(J,2)
Jc = J[i,j]
# directional derivates
......
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