Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openmole
market
Commits
df54e6be
Commit
df54e6be
authored
Jul 07, 2021
by
Juste Raimbault
Browse files
JuliaTask : hello world
parent
c93bbc6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
julia-hello/hello.jl
0 → 100644
View file @
df54e6be
numericaloutput
=
arg
*
2
write
(
open
(
"output.txt"
,
"w"
),
string
(
"Hello world from Julia #"
,
arg
))
julia-hello/julia.oms
0 → 100644
View file @
df54e6be
// 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment