Execute a shell on the master node

The job manager must also be run on the master. Primarily this is so that you can tell the master the addresses of the slave nodes.

  1. Source the $INSTALLATION/mfclient.env file..
  2. Create an empty directory in the node's read-write scratch area. This directory will be referred to as $TEMP in the remaining steps.
  3. Execute the mpijm program with repeated --distribute-to options for each slave node and the --tempdir option pointing to $TEMP.
  4. Change directory to $TARGET.
  5. Execute the runstudy command on the study file. You may wish to redirect standard output into a file.
  6. Terminate the mpijm program by sending it the TERM signal.
  7. Remove the $TEMP directory.
Tip: The mpijm program writes its process ID to /var/run/Autodesk/ami2016jm/ami2016jm.pid; this path is configurable with the --pidfile option.

Example: You have one master and three slave nodes, with hostnames slave1, slave2 and slave3. The command to run is:

$INSTALLATION/bin/mpijm
--tempdir $TEMP --distrbute-to slave1 --distrbute-to slave2
--distrbute-to slave3

The command to terminate the running Job Manager daemon is:

kill -TERM $(cat
/var/run/Autodesk/ami2016jm/ami2016jm.pid)