Commit df54e6be authored by Juste Raimbault's avatar Juste Raimbault
Browse files

JuliaTask : hello world

parent c93bbc6b
numericaloutput = arg * 2
write(open("output.txt","w"),string("Hello world from Julia #",arg))
// Declare the variable
val arg = Val[Int]
val numericaloutput = Val[Int]
val fileoutput = Val[File]
// julia task
val juliaTask =
JuliaTask(workDirectory / "hello.jl") set (
inputs += arg.mapped,
outputs += arg,
outputs += numericaloutput.mapped,
outputs += fileoutput mapped "output.txt"
)
val copy = CopyFileHook(fileoutput, workDirectory / "result/hello${arg}.txt")
val env = LocalEnvironment(2)
DirectSampling(
evaluation = juliaTask,
sampling = arg in (0 to 10)
) hook copy on env
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment