Commit 5daa064c authored by Romain Reuillon's avatar Romain Reuillon

Add native tutorial and pdf.

parent 8ac0c988
#Introduction tutorial
This tutorial will get you started with the basics of OpenMOLE. To get started you should follow the instructions in the pdf.
val pyTask =
SystemExecTask(
"./python.bin",
"./python/re-execute.sh python matrix.py data.csv 2 out.csv") set (
resources += workDirectory / "../python.bin"
)
pyTask
val output = Val[File]
val pyTask = SystemExecTask(
"./python.bin",
"./python/re-execute.sh python matrix.py data.csv 2 /tmp/out.csv") set (
resources += workDirectory / "../python.bin",
outputFiles += ("python/rootfs/tmp/out.csv", output)
)
val copyHook = CopyFileHook(output, workDirectory / "result.csv")
(pyTask hook copyHook)
val input = Val[File]
val output = Val[File]
val pyTask = SystemExecTask(
"./python.bin",
"./python/re-execute.sh python matrix.py /tmp/data.csv 2 /tmp/out.csv") set (
resources += workDirectory / "../python.bin",
inputFiles += (input, "python/rootfs/tmp/data.csv"),
outputFiles += ("python/rootfs/tmp/out.csv", output),
input := workDirectory / "../data/data1.csv"
)
val copyHook = CopyFileHook(output, workDirectory / "result.csv")
pyTask hook copyHook
val input = Val[File]
val output = Val[File]
val i = Val[Int]
val pyTask = SystemExecTask(
"./python.bin",
"./python/re-execute.sh python matrix.py /tmp/data.csv ${i} /tmp/out.csv") set (
resources += workDirectory / "../python.bin",
inputFiles += (input, "python/rootfs/tmp/data.csv"),
outputFiles += ("python/rootfs/tmp/out.csv", output),
input := workDirectory / "../data/data1.csv",
inputs += i,
outputs += i
)
val copyHook = CopyFileHook(output, workDirectory / "results/result${i}.csv")
val exploration = ExplorationTask(i in (1 to 10))
exploration -< (pyTask hook copyHook)
val input = Val[File]
val inputName = Val[String]
val output = Val[File]
val i = Val[Int]
val pyTask = SystemExecTask(
"./python.bin",
"./python/re-execute.sh python matrix.py /tmp/data.csv ${i} /tmp/out.csv") set (
resources += workDirectory / "../python.bin",
inputFiles += (input, "python/rootfs/tmp/data.csv"),
outputFiles += ("python/rootfs/tmp/out.csv", output),
inputs += i,
outputs += i
)
val copyHook = CopyFileHook(output, workDirectory / "results/${inputName.dropRight(4)}/result${i}.csv")
val exploration =
ExplorationTask(
(i in (1 to 10)) x
(input in (workDirectory / "../data/").files withName inputName)
)
exploration -< (Strain(pyTask) hook copyHook)
#Tutorial exploring a linux native applications
This tutorial demonstrate how to package your own application running on Linux to make it portable and explore it with OpenMOLE. To get started you should follow the instructions in the pdf.
3,8,0
4,48,7
87,77,4
\ No newline at end of file
3,0,0
4,42,7
0,99,99
\ No newline at end of file
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