Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
python: exec-async and exec-remote examples
[simgrid.git] / examples / python / exec-async / exec-async.tesh
1 #!/usr/bin/env tesh
2
3 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${srcdir:=.}/exec-async.py ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
4 > [  0.000000] (1:wait@Fafard) Execute 76296000 flops, should take 1 second.
5 > [  0.000000] (2:monitor@Ginette) Execute 48492000 flops, should take 1 second.
6 > [  0.000000] (3:cancel@Boivin) Execute 98095000 flops, should take 1 second.
7 > [  0.000000] (2:monitor@Ginette) Remaining amount of flops: 48492000 (100%)
8 > [  0.300000] (2:monitor@Ginette) Remaining amount of flops: 33944400 (70%)
9 > [  0.500000] (3:cancel@Boivin) I changed my mind, cancel!
10 > [  0.500000] (3:cancel@Boivin) Goodbye now!
11 > [  0.600000] (2:monitor@Ginette) Remaining amount of flops: 19396800 (40%)
12 > [  0.900000] (2:monitor@Ginette) Remaining amount of flops: 4849200 (10%)
13 > [  1.000000] (1:wait@Fafard) Goodbye now!
14 > [  1.200000] (2:monitor@Ginette) Goodbye now!