Ignore:
Timestamp:
May 14, 2018, 3:36:29 PM (15 months ago)
Author:
xwa163
Message:

Init checkin for bitstream_pdep_kernel with gather intrinsics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/lz4/LZ4GrepGenerator.cpp

    r6039 r6040  
    2323#include <kernels/lz4/lz4_bitstream_not_kernel.h>
    2424#include <kernels/bitstream_pdep_kernel.h>
     25#include <kernels/bitstream_gather_pdep_kernel.h>
    2526#include <re/re_toolchain.h>
    2627
     
    613614}
    614615
    615 void LZ4GrepGenerator::generateCountOnlyGrepPipeline(re::RE *regex) {
     616void LZ4GrepGenerator::generateCountOnlyGrepPipeline(re::RE *regex, bool enableGather) {
    616617    auto & iBuilder = mPxDriver.getBuilder();
    617618    this->generateMainFunc(iBuilder);
     
    624625
    625626    StreamSetBuffer * depositedBits = mPxDriver.addBuffer<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8), this->getDecompressedBufferBlocks());
    626     Kernel * bitStreamPDEPk = mPxDriver.addKernelInstance<BitStreamPDEPKernel>(iBuilder, 8);
     627    Kernel * bitStreamPDEPk = enableGather ? mPxDriver.addKernelInstance<BitStreamGatherPDEPKernel>(iBuilder, 8) : mPxDriver.addKernelInstance<BitStreamPDEPKernel>(iBuilder, 8);
    627628    mPxDriver.makeKernelCall(bitStreamPDEPk, {mDepositMarker, extractedBits}, {depositedBits});
    628629
Note: See TracChangeset for help on using the changeset viewer.