Ignore:
Timestamp:
Jul 24, 2017, 11:48:36 AM (22 months ago)
Author:
lindanl
Message:

minor fixes.

File:
1 edited

Legend:

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

    r5528 r5576  
    285285    Type * const outputType = PointerType::get(ArrayType::get(iBuilder->getBitBlockType(), 4), 0);
    286286
     287    const unsigned segmentSize = codegen::SegmentSize;
     288    const unsigned bufferSegments = codegen::BufferSegments;
     289
    287290    Function * const main = cast<Function>(m->getOrInsertFunction("Main", voidTy, int32Ty, outputType, nullptr));
    288291    main->setCallingConv(CallingConv::C);
     
    302305    pxDriver.makeKernelCall(mmapK, {}, {ByteStream});
    303306
    304     auto BasisBits = pxDriver.addBuffer(make_unique<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8), 1));
     307    auto BasisBits = pxDriver.addBuffer(make_unique<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8), segmentSize * bufferSegments));
    305308    auto s2pk = pxDriver.addKernelInstance(make_unique<S2PKernel>(iBuilder));
    306 
    307309    pxDriver.makeKernelCall(s2pk, {ByteStream}, {BasisBits});
    308310
    309311    auto CCResults = pxDriver.addExternalBuffer(make_unique<ExternalBuffer>(iBuilder, iBuilder->getStreamSetTy(4), outputStream));
    310 
    311312    auto ccck = pxDriver.addKernelInstance(make_unique<PreprocessKernel>(iBuilder));
    312 
    313313    pxDriver.makeKernelCall(ccck, {BasisBits}, {CCResults});
    314314
Note: See TracChangeset for help on using the changeset viewer.