Ignore:
Timestamp:
May 1, 2018, 6:18:30 PM (14 months ago)
Author:
nmedfort
Message:

Removed temporary buffers from pipeline and placed them in the source kernels.

File:
1 edited

Legend:

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

    r5986 r6008  
    7979    char *fileBuffer = const_cast<char *>(mappedFile.data());
    8080
    81     if (codegen::SegmentSize < 2) {
    82         codegen::SegmentSize = 2;
    83     }
    84 
    8581    const auto bufferSize = codegen::ThreadNum * codegen::SegmentSize;
    8682
     
    109105    StreamSetBuffer * BasisBits = pxDriver.addBuffer<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8, 1), bufferSize);
    110106
    111     kernel::Kernel * sourceK = pxDriver.addKernelInstance<MemorySourceKernel>(iBuilder, iBuilder->getInt8PtrTy());
     107    kernel::Kernel * sourceK = pxDriver.addKernelInstance<MemorySourceKernel>(iBuilder);
    112108    sourceK->setInitialArguments({inputStream, fileSize});
    113109    pxDriver.makeKernelCall(sourceK, {}, {ByteStream});
Note: See TracChangeset for help on using the changeset viewer.