1 /* Copyright (c) 2012-2014. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
9 import org.simgrid.msg.Host;
10 import org.simgrid.msg.Msg;
11 import org.simgrid.msg.MsgException;
13 * This example demonstrates of how to use the other
14 * kind of resources, such as disk or GPU. These resources are quite
15 * experimental for now, but here we go anyway.
18 public static void main(String[] args) throws MsgException {
21 Msg.info("Usage : IO platform_file ");
22 Msg.info("example : IO platform.xml ");
25 Msg.createEnvironment(args[0]);
27 Host[] hosts = Host.all();
29 Msg.info("Number of hosts:" + hosts.length);
30 for (int i = 0; i < hosts.length && i < 4; i++) {
31 new io.Node(hosts[i],i).start();