Ignore:
Timestamp:
Jul 20, 2016, 10:06:34 AM (3 years ago)
Author:
cameron
Message:

Buffer class hierarchy; s2p kernel demonstrates specialization for different buffer strategies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/s2p_kernel.cpp

    r5097 r5100  
    166166   
    167167    Value * self = getParameter(doBlockFunction, "self");
     168    Value * byteStreamBase_ptr = getScalarField(self, mStreamSetInputs[0].ssName + basePtrSuffix);
     169    Value * basisBitsBase_ptr = getScalarField(self, mStreamSetOutputs[0].ssName + basePtrSuffix);
    168170    Value * blockNo = getScalarField(self, blockNoScalar);
    169     Value * byteStreamBlock_ptr = getCircularBufferBlockPointer(self, mStreamSetInputs[0].ssName, blockNo);
    170     Value * basisBitsBlock_ptr = getCircularBufferBlockPointer(self, mStreamSetOutputs[0].ssName, blockNo);   
     171   
     172   
     173    Value * byteStreamBlock_ptr = mByteStream.getStreamSetBlockPointer(byteStreamBase_ptr, blockNo);
     174    Value * basisBitsBlock_ptr = mBasisBits.getStreamSetBlockPointer(basisBitsBase_ptr, blockNo);
    171175   
    172176    Value * s_bytepack[8];
Note: See TracChangeset for help on using the changeset viewer.