- Move all resources/input files into the same directory as where
scheduler-final-T4.jar
exists - Open up terminal/command line
- Run
cd <path to where scheduler-final-T4.jar is located>
- Run
java -jar scheduler-final-T4.jar <INPUT.dot> <P> [OPTIONS]
- Keep .dot files on the top project directory.
- Change run configuration to include command line inputs to your liking
- Run Main.main()
- The output file should be in your top level directory of project
Name | UPI | ID no. | GitHub Username |
---|---|---|---|
Allen Nian | ania716 | 958920712 | anian100 |
Dinith Wannigama | dwan609 | 834713594 | Dinith1 |
Hong Shi | hshi952 | 314381442 | HongShi10 |
Michelle Tan | mtan264 | 186674282 | michellemtan |
Richard Ng | rng448 | 169182120 | Richardng12 |
Vanessa Ciputra | vcip451 | 804079209 | vee-christella |
This program takes in an input graph via a .dot file, this directed acyclic graph has nodes and edges with weights that represent processing time and communication costs between processors respectively. Each node represents a task which can be scheduled on a processor. This scheduler will find a valid schedule to return.
- Run JAR:
java -jar scheduler-final-T4.jar <INPUT.dot> <P> [OPTIONS]
Required | Description |
---|---|
<INPUT.dot> |
A task graph with integer weights in dot format |
<P> |
Number of processors to schedule the INPUT graph on |
Options | Description |
---|---|
-p <NUMBER-OF-CORES> |
Use the specified number of cores to compute schedule in parallel |
-v |
Visualize the search |
-o <OUTPUT.dot> |
Name of file to save output schedule to |
- To get help:
java -jar scheduler-final-T4.jar --help
- This will prints information on how to use the JAR file
- Run
mvn package
. This should generate a target folder on top directory - Open up a terminal and cd to the target folder
- Run
scheduler-final-T4.jar
- It should run fine, if not, run
mvn clean
and try again. - The output file should be in the same directory as your jar. i.e top level directory in target folder
Make sure to enable auto imports, as a maven project might mess with importing otherwise.