Changes between Version 3 and Version 4 of MPITransformation


Ignore:
Timestamp:
05/14/14 10:08:18 (12 years ago)
Author:
zmanchun
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MPITransformation

    v3 v4  
    3131$input int NPROCS_LOWER;
    3232$assume NPROCS_LOWER < NPROCS && NPROCS <= NPROCS_UPPER;
    33 $gcomm GCOMM_WORLD = $gcomm_create($here, NPROCS);
     33CMPI_Gcomm GCOMM_WORLD = CMPI_Gcomm_create($here, NPROCS);
    3434
    3535void MPI_Process(int _rank){
     
    4646    $wait(procs[i]);
    4747  }
    48   $gcomm_destroy(GCOMM_WORLD);
     48  CMPI_Gcomm_destroy(GCOMM_WORLD);
    4949}
    5050}}}
     
    5353
    5454{{{
    55 void MPI_Process(){
    56   $comm MPI_COMM_WORLD = $comm_create(...);
     55void MPI_Process(int _rank){
     56  MPI_Comm MPI_COMM_WORLD = MPI_Comm_create($here, _rank);
    5757 
    5858  //SLIGHTLY-MODIFIED ORIGINAL PROGRAM;
     
    6464  //ORIGINAL PROGRAM ENDS HERE;
    6565  __main();
    66   $comm_destroy(MPI_COMM_WORLD);
     66  MPI_Comm_destroy(MPI_COMM_WORLD);
    6767}
    6868}}}