Changes between Version 3 and Version 4 of MPITransformation
- Timestamp:
- 05/14/14 10:08:18 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MPITransformation
v3 v4 31 31 $input int NPROCS_LOWER; 32 32 $assume NPROCS_LOWER < NPROCS && NPROCS <= NPROCS_UPPER; 33 $gcomm GCOMM_WORLD = $gcomm_create($here, NPROCS);33 CMPI_Gcomm GCOMM_WORLD = CMPI_Gcomm_create($here, NPROCS); 34 34 35 35 void MPI_Process(int _rank){ … … 46 46 $wait(procs[i]); 47 47 } 48 $gcomm_destroy(GCOMM_WORLD);48 CMPI_Gcomm_destroy(GCOMM_WORLD); 49 49 } 50 50 }}} … … 53 53 54 54 {{{ 55 void MPI_Process( ){56 $comm MPI_COMM_WORLD = $comm_create(...);55 void MPI_Process(int _rank){ 56 MPI_Comm MPI_COMM_WORLD = MPI_Comm_create($here, _rank); 57 57 58 58 //SLIGHTLY-MODIFIED ORIGINAL PROGRAM; … … 64 64 //ORIGINAL PROGRAM ENDS HERE; 65 65 __main(); 66 $comm_destroy(MPI_COMM_WORLD);66 MPI_Comm_destroy(MPI_COMM_WORLD); 67 67 } 68 68 }}}
