Changes between Version 8 and Version 9 of Public/User_Guide/TAMPI_NAM


Ignore:
Timestamp:
Mar 3, 2021, 7:44:51 PM (3 years ago)
Author:
Kevin Sala
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Public/User_Guide/TAMPI_NAM

    v8 v9  
    4141        // Computation and communication tasks declaring
    4242        // dependencies on the blocks they process
    43         gaussSeidelSolver(...);
     43        gaussSeidelSolver(..all blocks in current rank..);
    4444
    4545        if (t % namSnapshotFreq == 0) {
     
    5454{{{#!c
    5555void namSaveMatrix(int namSnapshotId, MPI_Win namWindow, ...) {
    56     // Compute destination offset in NAM region
    57     int snapshotOffset = namSnapshotId*sizeof(..all blocks..);
     56    // Compute snapshot offset inside NAM region
     57    int snapshotOffset = namSnapshotId*sizeof(..all blocks in current rank..);
    5858
    5959    // Open RMA access epoch to write the NAM window for this timestep
    60     #pragma oss task in(..all blocks..) inout(namWindow)
     60    #pragma oss task in(..all blocks in current rank..) inout(namWindow)
    6161    {
    6262        MPI_Request request;
     
    6666
    6767    // Write all blocks from the current rank to NAM subregions concurrently
    68     for (B : all blocks) {
     68    for (B : all blocks in current rank) {
    6969        #pragma oss task in(..block B..) in(namWindow)
    7070        {
    71             MPI_Put(/* origin */ ..block B..,
    72                 /* target rank */ currentRank,
    73                 /* target offset */ snapshotOffset + B,
    74                 /* target window */ namWindow);
     71            MPI_Put(/* source data */  ..block B..,
     72                    /* target rank */  currentRank,
     73                    /* target offset */ snapshotOffset + B,
     74                    /* target window */ namWindow);
    7575        }
    7676    }
    7777
    7878    // Close RMA access epoch to write the NAM window for this timestep
    79     #pragma oss task in(..all blocks..) inout(namWindow)
     79    #pragma oss task in(..all blocks in current rank..) inout(namWindow)
    8080    {
    8181        MPI_Request request;