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

rodinia-srad: julia: Fix stderr

parent 05c48f91
No related branches found
No related tags found
No related merge requests found
...@@ -8,16 +8,16 @@ const RAND_MAX::Float32 = 2147483647.0 ...@@ -8,16 +8,16 @@ const RAND_MAX::Float32 = 2147483647.0
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>")
println(STDERR,"Usage ",prog," <rows> <cols> <y1> <y2> <x1> <x2> <lamda> <no. of iter>") println(stderr,"Usage ",prog," <rows> <cols> <y1> <y2> <x1> <x2> <lamda> <no. of iter>")
println(STDERR,"\t<rows> - number of rows") println(stderr,"\t<rows> - number of rows")
println(STDERR, "\t<cols> - number of cols\n") println(stderr, "\t<cols> - number of cols\n")
println(STDERR, "\t<y1> - y1 value of the speckle\n") println(stderr, "\t<y1> - y1 value of the speckle\n")
println(STDERR, "\t<y2> - y2 value of the speckle\n") println(stderr, "\t<y2> - y2 value of the speckle\n")
println(STDERR, "\t<x1> - x1 value of the speckle\n") println(stderr, "\t<x1> - x1 value of the speckle\n")
println(STDERR, "\t<x2> - x2 value of the speckle\n") println(stderr, "\t<x2> - x2 value of the speckle\n")
# println(STDERR, "\t<no. of threads> - no. of threads\n") # println(STDERR, "\t<no. of threads> - no. of threads\n")
println(STDERR, "\t<lamda> - lambda (0,1)\n") println(stderr, "\t<lamda> - lambda (0,1)\n")
println(STDERR, "\t<no. of iter> - number of iterations\n") println(stderr, "\t<no. of iter> - number of iterations\n")
exit(1) exit(1)
end end
...@@ -29,7 +29,7 @@ function main(args) ...@@ -29,7 +29,7 @@ function main(args)
rows = parse(Int64,args[1]) rows = parse(Int64,args[1])
cols = parse(Int64,args[2]) cols = parse(Int64,args[2])
if ((rows % 16) != 0) | ((cols % 16) != 0) if ((rows % 16) != 0) | ((cols % 16) != 0)
println(STDERR,"rows and cols must be mutiples of 16") println(stderr,"rows and cols must be mutiples of 16")
exit(1) exit(1)
end end
r1 = parse(Int32,args[3]) r1 = parse(Int32,args[3])
......
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