Ignore:
Timestamp:
Feb 2, 2018, 2:49:08 PM (15 months ago)
Author:
nmedfort
Message:

Revised pipeline structure to better control I/O rates

File:
1 edited

Legend:

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

    r5853 r5856  
    103103    iBuilder->SetInsertPoint(BasicBlock::Create(M->getContext(), "entry", main, 0));
    104104
    105 
    106105    // GeneratePipeline
    107106    StreamSetBuffer * ByteStream = pxDriver.addBuffer<SourceBuffer>(iBuilder, iBuilder->getStreamSetTy(1, 8));
    108107    StreamSetBuffer * BasisBits = pxDriver.addBuffer<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8, 1), inputBufferBlocks);
    109108
    110     kernel::Kernel * sourceK = pxDriver.addKernelInstance<MemorySourceKernel>(iBuilder, iBuilder->getInt8PtrTy(), codegen::SegmentSize);
     109    kernel::Kernel * sourceK = pxDriver.addKernelInstance<MemorySourceKernel>(iBuilder, iBuilder->getInt8PtrTy());
    111110    sourceK->setInitialArguments({inputStream, fileSize});
    112111    pxDriver.makeKernelCall(sourceK, {}, {ByteStream});
     112
    113113    Kernel * s2pk = pxDriver.addKernelInstance<S2PKernel>(iBuilder, /*aligned = */ true);
    114114    pxDriver.makeKernelCall(s2pk, {ByteStream}, {BasisBits});
    115 
    116115
    117116    StreamSetBuffer * const CharacterMarkerBuffer = pxDriver.addBuffer<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(1, 1), inputBufferBlocks);
     
    152151    pxDriver.generatePipelineIR();
    153152
     153    pxDriver.deallocateBuffers();
     154
    154155    iBuilder->CreateRetVoid();
    155156
Note: See TracChangeset for help on using the changeset viewer.