Ignore:
Timestamp:
Dec 22, 2016, 2:35:46 PM (3 years ago)
Author:
nmedfort
Message:

Modified memory alignment mechanism for GetPropertyValueGrepString? + misc. changes.

File:
1 edited

Legend:

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

    r5227 r5234  
    7272        kernels[i]->createDoSegmentCall(instancePtrs[i], segmentBlocks);
    7373        // Must be the last action, for synchronization.
    74         kernels[i]->releaseLogicalSegmentNo(instancePtrs[i], iBuilder->CreateAdd(processedSegmentCount, ConstantInt::get(iBuilder->getSizeTy(), 1)));
     74        kernels[i]->releaseLogicalSegmentNo(instancePtrs[i], iBuilder->CreateAdd(processedSegmentCount, iBuilder->getSize(1)));
    7575        if (i == last_kernel) break;
    7676        iBuilder->CreateBr(segmentWait[i+1]);
     
    212212        kernels[i]->createDoSegmentCall(kernels[i]->getInstance(), segBlocks);
    213213        Value * segNo = kernels[i]->acquireLogicalSegmentNo(kernels[i]->getInstance());
    214         kernels[i]->releaseLogicalSegmentNo(kernels[i]->getInstance(), iBuilder->CreateAdd(segNo, ConstantInt::get(iBuilder->getSizeTy(), 1)));
     214        kernels[i]->releaseLogicalSegmentNo(kernels[i]->getInstance(), iBuilder->CreateAdd(segNo, iBuilder->getSize(1)));
    215215    }
    216216    Value * endSignal = kernels.back()->getTerminationSignal(kernels.back()->getInstance());
Note: See TracChangeset for help on using the changeset viewer.