Ignore:
Timestamp:
May 1, 2018, 6:18:30 PM (16 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_deletion.cpp

    r5985 r6008  
    7676    char *fileBuffer = const_cast<char *>(mappedFile.data());
    7777
    78     if (codegen::SegmentSize < 2) {
    79         codegen::SegmentSize = 2;
    80     }
    81 
    8278    const int inputBufferBlocks = codegen::BufferSegments * codegen::ThreadNum * 16;
    8379
     
    105101    StreamSetBuffer * BasisBits = pxDriver.addBuffer<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8, 1), inputBufferBlocks);
    106102
    107     kernel::Kernel * sourceK = pxDriver.addKernelInstance<MemorySourceKernel>(iBuilder, iBuilder->getInt8PtrTy());
     103    kernel::Kernel * sourceK = pxDriver.addKernelInstance<MemorySourceKernel>(iBuilder);
    108104    sourceK->setInitialArguments({inputStream, fileSize});
    109105    pxDriver.makeKernelCall(sourceK, {}, {ByteStream});
Note: See TracChangeset for help on using the changeset viewer.