Ignore:
Timestamp:
Jan 17, 2017, 11:40:09 PM (3 years ago)
Author:
cameron
Message:

Fixes

File:
1 edited

Legend:

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

    r5265 r5266  
    244244        for (unsigned i = 0; i < mStreamSetOutputs.size(); i++) {
    245245            Value * preProduced = getProducedItemCount(self, mStreamSetOutputs[i].name);
     246           
    246247            setProducedItemCount(self, mStreamSetOutputs[i].name, iBuilder->CreateAdd(preProduced, segmentItemsProcessed));
     248            //iBuilder->CallPrintInt(mKernelName + " produced ", iBuilder->CreateAdd(preProduced, segmentItemsProcessed));
    247249        }
    248250    }
     
    252254    iBuilder->SetInsertPoint(doFinalBlock);
    253255
    254     Value * remainingItems = iBuilder->CreateSub(producerPos[0], processed);
     256    Value * remainingItems = iBuilder->CreateSub(producerPos[0], getProcessedItemCount(self, mStreamSetInputs[0].name));
    255257    //iBuilder->CallPrintInt(mKernelName + " remainingItems", remainingItems);
    256258   
     
    266268        }
    267269    }
     270    setTerminationSignal(self);
    268271    iBuilder->CreateBr(segmentDone);
    269272   
     
    344347void KernelBuilder::setTerminationSignal(Value * self) const {
    345348    Value * ptr = iBuilder->CreateGEP(self, {iBuilder->getInt32(0), getScalarIndex(terminationSignal)});
     349    //iBuilder->CallPrintInt(mKernelName + " setTermination", getScalarIndex(terminationSignal));
    346350    iBuilder->CreateStore(ConstantInt::get(iBuilder->getInt1Ty(), 1), ptr);
    347351}
Note: See TracChangeset for help on using the changeset viewer.