Ignore:
Timestamp:
Jan 7, 2017, 12:26:09 PM (3 years ago)
Author:
cameron
Message:

Separate processedItemCounts and producedItemCounts for each stream set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/editd/editd_gpu_kernel.cpp

    r5246 r5247  
    4242    iBuilder->CreateCall(doBlockFunction, doBlockArgs);
    4343    /* Adjust the produced item count */
    44     Value * produced = getProducedItemCount(self);
     44    Value * produced = getProducedItemCount(self, "ResultStream");
    4545    produced = iBuilder->CreateSub(produced, iBuilder->getSize(iBuilder->getStride()));
    46     setProducedItemCount(self, iBuilder->CreateAdd(produced, remaining));
     46    setProducedItemCount(self, "ResultStream", iBuilder->CreateAdd(produced, remaining));
    4747    iBuilder->CreateRetVoid();
    4848    iBuilder->restoreIP(savePoint);
     
    123123    }
    124124
    125     Value * produced = getProducedItemCount(kernelStuctParam);
     125    Value * produced = getProducedItemCount(kernelStuctParam, "ResultStream");
    126126    produced = iBuilder->CreateAdd(produced, iBuilder->getSize(iBuilder->getStride()));
    127     setProducedItemCount(kernelStuctParam, produced);
     127    setProducedItemCount(kernelStuctParam, "ResultStream", produced);
    128128       
    129129    iBuilder->CreateRetVoid();
Note: See TracChangeset for help on using the changeset viewer.