Ignore:
Timestamp:
Dec 13, 2016, 2:40:30 PM (3 years ago)
Author:
lindanl
Message:

Some fixes.

File:
1 edited

Legend:

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

    r5221 r5223  
    6161static cl::opt<int> stepSize("step-size", cl::desc("Step Size"), cl::init(3));
    6262static cl::opt<int> prefixLen("prefix", cl::desc("Prefix length"), cl::init(4));
     63static cl::opt<bool> ShowPositions("display", cl::desc("Display the match positions."), cl::init(false));
    6364
    6465using namespace kernel;
     
    110111    }
    111112
    112     std::cerr << "pattern_segs = " << pattern_segs << ", total_len = " << total_len << std::endl;
     113    std::cout << "pattern_segs = " << pattern_segs << ", total_len = " << total_len << std::endl;
    113114
    114115    int v = pattern_segs * (editDistance+1) - total_len * errRate;
     
    131132        }
    132133    }
    133     std::cout << "matching value is " << v << std::endl;
     134
    134135    std::cout << "total candidate from the first filter is " << matchList.size() << std::endl;
    135136    std::cout << "total candidate from the second filter is " << count << std::endl;
     
    142143        curMatch.dist = dist;
    143144        matchList.push_back(curMatch);
    144         // std::cout << "pos: " << match_pos << ", dist:" << dist << "\n";
     145        if(ShowPositions)
     146            std::cout << "pos: " << match_pos << ", dist:" << dist << "\n";
    145147    }
    146148
     
    602604    MatchResults.setStreamSetBuffer(inputStream, fileSize);
    603605   
    604     generatePipelineLoop(iBuilder, {&editdScanK}, fileSize);
     606    generatePipelineLoop(iBuilder, {&editdScanK});
    605607       
    606608    iBuilder->CreateRetVoid();
Note: See TracChangeset for help on using the changeset viewer.