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

rodinia-srad: julia: Output unconditionally

parent 490029a9
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,6 @@
using Printf
using Random
const OUTPUT = haskey(ENV, "OUTPUT")
function usage()
prog = basename(Base.source_path())
# println(STDERR,"Usage ",prog," <rows> <cols> <y1> <y2> <x1> <x2> <no. of threads><lamda> <no. of iter>")
......@@ -133,16 +131,14 @@ function main(args)
println("Computation done")
if OUTPUT
f = open("output.txt","w")
for i in 1:size(J,1)
for j in 1:size(J,2)
print(f,@sprintf("%.5f ",J[i,j]))
end
println(f)
f = open("output.txt","w")
for i in 1:size(J,1)
for j in 1:size(J,2)
print(f,@sprintf("%.5f ",J[i,j]))
end
close(f)
println(f)
end
close(f)
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