Ignore:
Timestamp:
Aug 5, 2017, 8:45:16 AM (21 months ago)
Author:
cameron
Message:

Bug fixes for multiblock kernel/radix64

File:
1 edited

Legend:

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

    r5595 r5599  
    230230        else {
    231231            mIsDerived[i] = false;
    232             mItemsPerStride[i] = mStride;
     232            mItemsPerStride[i] = 0;  // For unknown input rate, no items will be copied to temp buffers.
    233233        }
    234234    }
     
    261261        else {
    262262            mIsDerived[i] = false;
    263             mItemsPerStride[i] = mStride;
     263            mItemsPerStride[i] = 0;  // For unknown output rate, no items will be copied to temp buffers.
    264264        }
    265265    }
     
    10291029    for (unsigned i = 0; i < mStreamSetInputBuffers.size(); i++) {
    10301030        Type * bufPtrType = mStreamSetInputBuffers[i]->getPointerType();
    1031         if ((i == 0) || mIsDerived[i]) {
     1031        if (mItemsPerStride[i] != 0) {
    10321032            Value * tempBufPtr = kb->CreateGEP(tempParameterArea, {kb->getInt32(0), kb->getInt32(i)});
    10331033            tempBufPtr = kb->CreatePointerCast(tempBufPtr, bufPtrType);
     
    10721072        }
    10731073        else {
    1074             Value * bufPtr = kb->getRawInputPointer(mStreamSetInputs[i].name, kb->getInt32(0), processedItemCount[i]);
     1074            Value * bufPtr = kb->getInputStreamBlockPtr(mStreamSetInputs[i].name, kb->getInt32(0));
    10751075            bufPtr = kb->CreatePointerCast(bufPtr, mStreamSetInputBuffers[i]->getPointerType());
    10761076            tempArgs.push_back(bufPtr);           
Note: See TracChangeset for help on using the changeset viewer.