Changeset 5360 for icGREP/icgrep-devel


Ignore:
Timestamp:
Mar 12, 2017, 2:40:42 PM (2 years ago)
Author:
xuedongx
Message:

small fix for GPU

File:
1 edited

Legend:

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

    r5357 r5360  
    1616#include <IR_Gen/idisa_builder.h>
    1717#include <IR_Gen/idisa_target.h>
    18 #include <kernels/linebreak_kernel.h>
    1918#include <kernels/streamset.h>
    2019#include <kernels/mmap_kernel.h>
     
    3534void wrapped_report_pos(size_t match_pos, int dist) {
    3635        LFPositions.push_back(match_pos);
    37         // std::cout << "pos: " << match_pos << "\n";
    3836    }
    3937
     
    7876    mmapK.setInitialArguments({fileSize});
    7977
    80     kernel::LineBreakKernelBuilder linebreakK(iBuilder, "lb", encodingBits);
    81     linebreakK.generateKernel({&ByteStream}, {&MatchResults});
     78    kernel::DirectCharacterClassKernelBuilder linefeedK(iBuilder, "linefeed", {re::makeCC(0x0A)}, 1);
     79    linefeedK.generateKernel({&ByteStream}, {&MatchResults});
    8280   
    8381    kernel::CCScanKernel scanMatchK(iBuilder, 1);
    8482    scanMatchK.generateKernel({&MatchResults}, {});
    8583   
    86     generatePipelineLoop(iBuilder, {&mmapK, &linebreakK, &scanMatchK});
     84    generatePipelineLoop(iBuilder, {&mmapK, &linefeedK, &scanMatchK});
    8785    iBuilder->CreateRetVoid();
    8886
Note: See TracChangeset for help on using the changeset viewer.