wiki:Doc/panc/stdtpl/units

Version 2 (modified by /O=GRID-FR/C=FR/O=CNRS/OU=LAL/CN=Charles Loomis, 18 years ago) ( diff )

--

pan/units Template

This template contains multiplier variable definitions that allow the consistent use of units throughout a machine configuration. The base units assumed by this template are megabytes (MB) and megahertz (MHz); that is, those multipliers have a value of 1. The multipliers and their values are:

  • mb or MB = 1
  • gb or GB = 1024 * MB;
  • tb or TB = 1024 * GB;
  • MHz = 1
  • GHz = 1000 * MHz;

These are available as global variables and can be used as in the following example:

  variable myspeed = 366 * GHz;
  variable mysize = 24 * GB;

Using these units consistently throughout is clearer and helps avoid inconsistencies in the parameters.

Note: See TracWiki for help on using the wiki.