from argparse import ArgumentParser
import sys
-from simgrid import Engine, Host, this_actor, Actor
+from simgrid import Engine, Host, this_actor, Actor, sg_host_load_plugin_init
def parse():
parser = ArgumentParser()
this_actor.info(f'Run an activity of {100E6:.0E} flops')
this_actor.execute(100E6)
this_actor.info(f'Done working on my activity; this took {Engine.clock - start}s; current peak speed: {host.speed:.0E} flop/s; number of flops computed so far: {host.computed_flops:.0E}')
- Engine
+
start = Engine.clock
this_actor.info("========= Requesting a reset of the computation and load counters")
host.reset_load()
if __name__ == '__main__':
args = parse()
- Host.sg_host_load_plugin_init()
+
+ sg_host_load_plugin_init()
e = Engine(sys.argv)
e.load_platform(args.platform)