6. Trying out MAST¶
Go to
$HOME/MAST/examples(or$WORK/MAST/examplesor a similar folder, if you moved the$HOME/MASTfolder from its default location.)Select one of the examples. The fastest one is
simple_optimization.inpCopy that file:
cp simple_optimization.inp test.inp
Modify the test.inp file with the correct
mast_exec,mast_ppn,mast_queue,mast_walltime, and other settings described in Input FileTry to parse the input file, entering the following command as one line:
nice -n 19 mast -i test.inp
- The
nice -n 19keeps this command low priority, since it is being run on the headnode (but it is not too intensive). - The
-isignals to MAST that it is processing an input file.
- The
Your
$MAST_SCRATCHdirectory should now have a recipe directory in it.- The recipe directory will have a name corresponding to the elements and the input file, and ending with a timestamp of YYYYMMDD”T”hhmmss.
- The recipe directory will contain several subfolders, which are ingredient directories.
Go to that recipe directory.
To see the input options:
cat input.inp(should be identical to test.inp since no looping was used)- Note that you can use other viewing commands, not just
cat, but be careful not to edit any of these files.
- Note that you can use other viewing commands, not just
cat archive_input_options.txt(should show Al instead of element X1)
To see information about the ingredient relationships MAST detected from the recipe template:
cat archive_recipe_plan.txt- Look at the
$personal_recipesection in theinput.inpfile
To see ingredient statuses at a glance:
cat status.txt
Run mast once:
nice -n 19 mastYou should see a “mastmon” job appear on the queue specified in
$MAST_CONTROL/mastmon_submit.shMAST should have detected that the first ingredient was ready to run, so when that process disappears, run mast again:
nice -n 19 mastNow you should see
perfect_opt1appear on the queue.status.txtin the recipe directory in$MAST_SCRATCHshould show thatperfect_opt1has a status of “Proceed to Queue”, or “P”.When the queued
perfect_opt1job starts running, you should be able to see output files inside$MAST_SCRATCH/<recipe directory>/perfect_opt1If you forgot some step above, or you encounter some errors, remove the recipe folder from
$MAST_SCRATCHand start again from the beginning of this section.The
$MAST_CONTROLfolder gives you error messages and other information. See Running MAST for tips.
6.1. Unit testing¶
Unit tests are available through the MAST tar.gz file. See Programming for MAST. (Unit tests are not installed by default using pip.)
To check the validity of the MAST source code, navigate to <MAST installation directory>/MAST/test and run the unit tests with:
nosetests --exe
Some tests may have been designated to be skipped. Errors should be reported to the MAST development team as an issue on the github site (see Programming for MAST).