A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'xbt_random' into 'master'
[simgrid.git]
/
examples
/
python
/
exec-dvfs
/
exec-dvfs.py
diff --git
a/examples/python/exec-dvfs/exec-dvfs.py
b/examples/python/exec-dvfs/exec-dvfs.py
index
3d90f99
..
e712791
100644
(file)
--- a/
examples/python/exec-dvfs/exec-dvfs.py
+++ b/
examples/python/exec-dvfs/exec-dvfs.py
@@
-3,11
+3,11
@@
# This program is free software; you can redistribute it and/or modify it
# under the terms of the license (GNU LGPL) which comes with this package.
# This program is free software; you can redistribute it and/or modify it
# under the terms of the license (GNU LGPL) which comes with this package.
+from simgrid import Actor, Engine, Host, this_actor
import sys
import sys
-from simgrid import *
-class
d
vfs:
+class
D
vfs:
def __call__(self):
workload = 100E6
host = this_actor.get_host()
def __call__(self):
workload = 100E6
host = this_actor.get_host()
@@
-50,7
+50,7
@@
if __name__ == '__main__':
raise AssertionError("Usage: exec-dvfs.py platform_file [other parameters] (got {:d} params)".format(len(sys.argv)))
e.load_platform(sys.argv[1])
raise AssertionError("Usage: exec-dvfs.py platform_file [other parameters] (got {:d} params)".format(len(sys.argv)))
e.load_platform(sys.argv[1])
- Actor.create("dvfs_test", Host.by_name("MyHost1"),
d
vfs())
- Actor.create("dvfs_test", Host.by_name("MyHost2"),
d
vfs())
+ Actor.create("dvfs_test", Host.by_name("MyHost1"),
D
vfs())
+ Actor.create("dvfs_test", Host.by_name("MyHost2"),
D
vfs())
e.run()
e.run()