Ignore:
Timestamp:
Sep 5, 2016, 9:13:11 AM (3 years ago)
Author:
cameron
Message:

ExternalFileBuffer?, SingleBlockBuffer? fixes

File:
1 edited

Legend:

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

    r5139 r5142  
    3030#include <kernels/scanmatchgen.h>
    3131#include <kernels/s2p_kernel.h>
     32#include <kernels/cc_kernel.h>
    3233#include <kernels/pipeline.h>
    3334
     
    152153    fileIdx->setName("fileIdx");
    153154       
    154     ExternalUnboundedBuffer ByteStream(iBuilder, StreamSetType(1, i8));
     155    ExternalFileBuffer ByteStream(iBuilder, StreamSetType(1, i8));
    155156    CircularBuffer BasisBits(iBuilder, StreamSetType(8, i1), segmentSize * bufferSegments);
    156157
    157158    kernel::s2pKernel  s2pk(iBuilder);
    158159    s2pk.generateKernel({&ByteStream}, {&BasisBits});
    159 
    160     re_ast = re::regular_expression_passes(re_ast);   
     160   
     161    re_ast = re::regular_expression_passes(re_ast);
    161162    pablo::PabloFunction * function = re::re2pablo_compiler(encodingBits, re_ast, CountOnly);
    162163    pablo_function_passes(function);
    163164
    164     ByteStream.setStreamSetBuffer(inputStream);
     165    ByteStream.setStreamSetBuffer(inputStream, fileSize);
    165166    BasisBits.allocateBuffer();
    166 
    167     Value * producerPtr = ByteStream.getProducerPosPtr(ByteStream.getStreamSetStructPtr());
    168     iBuilder->CreateAlignedStore(fileSize, producerPtr, 8)->setOrdering(Release);
    169167
    170168    Value * s2pInstance = s2pk.createInstance({});
Note: See TracChangeset for help on using the changeset viewer.