Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
363fb20ae2db6f36fe805d1f344172eb901436f8
[simgrid.git] / examples / s4u / exec-remote / s4u-exec-remote.tesh
1 #!/usr/bin/env tesh
2
3 ! output sort 19
4 $ $SG_TEST_EXENV ${bindir:=.}/s4u-exec-remote$EXEEXT ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
5 > [  0.000000] (1:test@Fafard) I'm a wizard! I can run a task on the Fafard host from the Ginette one! Look!
6 > [  0.000000] (1:test@Fafard) It started. Running 48.492Mf takes exactly one second on Ginette (but not on Fafard).
7 > [  0.100000] (1:test@Fafard) Loads in flops/s: Boivin=0; Fafard=0; Ginette=48492000
8 > [  1.000000] (1:test@Fafard) Done!
9 > [  1.000000] (1:test@Fafard) And now, harder. Start a remote task on Ginette and move it to Boivin after 0.5 sec
10 > [  1.500000] (1:test@Fafard) Loads before the move: Boivin=0; Fafard=0; Ginette=48492000
11 > [  1.600000] (1:test@Fafard) Loads after the move: Boivin=98095000; Fafard=0; Ginette=0
12 > [  2.000000] (1:test@Fafard) Done!