Changes between Version 3 and Version 4 of CommonHelperFunctionsForDifferentParallelLanguage


Ignore:
Timestamp:
07/14/14 11:42:34 (12 years ago)
Author:
ziqing
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommonHelperFunctionsForDifferentParallelLanguage

    v3 v4  
     1For the reason of trying not to be interfered with predefined constants in programs, I propose to add a prefix for all operations. (I use COP_ as prefixes for a temporary use. COP stands for CIVL OPERATION.)
     2
    13Collective operations are being used by several parallel language like MPI or openMP
    24{{{ 
    35// Operation for collective reductions or collective operations
    46typedef enum {
    5   NO_OP,    // no operation
    6   MAX,      // maxinum
    7   MIN,      // minimun
    8   SUM,      // sum
    9   PROD,     // product
    10   LAND,     // logical and
    11   BAND,     // bit-wise and
    12   LOR,      // logical or
    13   BOR,      // bit-wise or
    14   LXOR,     // logical exclusive or
    15   BXOR,     // bit-wise exclusive or
    16   MINLOC,  // min value and location
    17   MAXLOC,  // max value and location
    18   REPLACE  // replace ? TODO: Find definition for this operation
     7  COP_NO_OP,  // no operation
     8  COP_MAX,    // maxinum
     9  COP_MIN,    // minimun
     10  COP_SUM,    // sum
     11  COP_PROD,   // product
     12  COP_LAND,   // logical and
     13  COP_BAND,   // bit-wise and
     14  COP_LOR,    // logical or
     15  COP_BOR,    // bit-wise or
     16  COP_LXOR,   // logical exclusive or
     17  COP_BXOR,   // bit-wise exclusive or
     18  COP_MINLOC, // min value and location
     19  COP_MAXLOC, // max value and location
     20  COP_REPLACE // replace ? TODO: Find definition for this operation
    1921}$operation;
    2022}}}