Difference between revisions of "Pkit.h"

From Earlham CS Department
Jump to navigation Jump to search
(New page: *Generalize output ** Allow a variable number of arguments (va_arg and all that jazz) and let the programmer specify what he or she wants to see (for debug purposes) *Because people may wa...)
 
Line 1: Line 1:
 +
In order to ease the introduction of further programs into PetaKit, a generalized header for data output is under construction.
 
*Generalize output
 
*Generalize output
 
** Allow a variable number of arguments (va_arg and all that jazz) and let the programmer specify what he or she wants to see (for debug purposes)
 
** Allow a variable number of arguments (va_arg and all that jazz) and let the programmer specify what he or she wants to see (for debug purposes)
 +
** Arguments that stat.pl expects to see are required:
 +
***Program name - currently in ''name''_''parallelization style'' format
 +
**** This is a duplication of information (see architecture), but it may be better than the alternative, which is to try and fit all four styles into the same program with preprocessor commands
 +
***Program version - I see people updating this once and forgetting to update it again. It can't hurt, though
 +
***Hostname - currently goes through a filter to identify it as being from a list of known clusters.
 +
***Threads
 +
***cputime - most challenging to implement. With high repetitions Walltime is nearly as accurate. I recommend we cut.
 +
***architecture - Parallelization style
 +
***problem_size - The main "dial"
 +
**** In area this is segments
 +
**** In GalaxSee this is stars
 
*Because people may want to equip C or C++ programs, account for the fact that cout and printf do not play nicely together.
 
*Because people may want to equip C or C++ programs, account for the fact that cout and printf do not play nicely together.
 
** The library detects C or C++ in the preprocessor stage and uses printf or cout respectively.
 
** The library detects C or C++ in the preprocessor stage and uses printf or cout respectively.

Revision as of 09:30, 13 May 2010

In order to ease the introduction of further programs into PetaKit, a generalized header for data output is under construction.

  • Generalize output
    • Allow a variable number of arguments (va_arg and all that jazz) and let the programmer specify what he or she wants to see (for debug purposes)
    • Arguments that stat.pl expects to see are required:
      • Program name - currently in name_parallelization style format
        • This is a duplication of information (see architecture), but it may be better than the alternative, which is to try and fit all four styles into the same program with preprocessor commands
      • Program version - I see people updating this once and forgetting to update it again. It can't hurt, though
      • Hostname - currently goes through a filter to identify it as being from a list of known clusters.
      • Threads
      • cputime - most challenging to implement. With high repetitions Walltime is nearly as accurate. I recommend we cut.
      • architecture - Parallelization style
      • problem_size - The main "dial"
        • In area this is segments
        • In GalaxSee this is stars
  • Because people may want to equip C or C++ programs, account for the fact that cout and printf do not play nicely together.
    • The library detects C or C++ in the preprocessor stage and uses printf or cout respectively.