Ignore:
Timestamp:
Jun 10, 2017, 2:11:39 PM (2 years ago)
Author:
cameron
Message:

setCapacity/getCapacity/getLinearlyAvailableItems for SourceBuffer?

File:
1 edited

Legend:

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

    r5500 r5501  
    168168    kb->setBaseAddress("sourceBuffer", buffer);
    169169    kb->setBufferedSize("sourceBuffer", kb->getSize(0));
     170    kb->setCapacity("sourceBuffer", kb->getSize(initialBufferSize));
    170171}
    171172
     
    261262    kb->setScalarField("buffer", expandedBuffer);
    262263    kb->setScalarField("capacity", expandedCapacity);
     264    kb->setCapacity("sourceBuffer", expandedCapacity);
    263265    kb->CreateBr(calculateLogicalAddress);
    264266
Note: See TracChangeset for help on using the changeset viewer.