Changes between Version 4 and Version 5 of CommonHelperFunctionsForDifferentParallelLanguage


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

--

Legend:

Unmodified
Added
Removed
Modified
  • CommonHelperFunctionsForDifferentParallelLanguage

    v4 v5  
    3030*/
    3131void $bundle_unpack_apply($bundle data, void *buf, int size, $operation op);
     32
     33/* Then MPI_Reduce() can has such a neat form */
     34int MPI_Reduce(){
     35  if(non-root){
     36    Send to root;
     37  }else{
     38    &comm_dequeue();
     39    &bundle_unpack_apply();
     40  }
     41  ...
     42}
    3243}}}