• Xin Zhao's avatar
    Move 'stream_offset' out of RMA packet struct. · 19f29078
    Xin Zhao authored
    
    
    'stream_offset' is used to specify the starting position
    (on target window) of the current streaming unit in ACC-like
    operations. It is originally put in the RMA packet struct,
    which potentially increases the size of CH3 packet size.
    
    In this patch, we move 'stream_offset' out of the RMA
    packet as follows: 1. when target data is basic datatype,
    we use 'stream_offset' and the starting address for the entire
    operation to calculate the starting address for current
    streaming unit, and rewrite 'addr' in RMA packet with that
    value; 2. when target data is derived datatype, we cannot do
    the same thing as basic datatype because the target needs to
    know both the starting address for the entire operation and
    the starting address for the current streaming unit. Therefore,
    we send 'stream_offset' separately to the target side.
    
    Signed-off-by: default avatarMin Si <msi@il.is.s.u-tokyo.ac.jp>
    Signed-off-by: default avatarAntonio J. Pena <apenya@mcs.anl.gov>
    19f29078