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