Ignore:
Timestamp:
Jan 18, 2018, 1:34:55 PM (20 months ago)
Author:
cameron
Message:

Pablo packh/packl and transposition with -enable-pablo-s2p

File:
1 edited

Legend:

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

    r5831 r5837  
    5151
    5252static cl::opt<int> Threads("t", cl::desc("Total number of threads."), cl::init(2));
     53static cl::opt<bool> PabloTransposition("enable-pablo-s2p", cl::desc("Enable experimental pablo transposition."));
    5354
    5455namespace grep {
     
    119120
    120121    StreamSetBuffer * BasisBits = mGrepDriver->addBuffer<CircularBuffer>(idb, idb->getStreamSetTy(encodingBits, 1), baseBufferSize);
    121     kernel::Kernel * s2pk = mGrepDriver->addKernelInstance<kernel::S2PKernel>(idb);
     122    kernel::Kernel * s2pk = nullptr;
     123    if (PabloTransposition) {
     124        s2pk = mGrepDriver->addKernelInstance<kernel::S2P_PabloKernel>(idb);
     125    }
     126    else {
     127        s2pk = mGrepDriver->addKernelInstance<kernel::S2PKernel>(idb);
     128    }
    122129    mGrepDriver->makeKernelCall(s2pk, {ByteStream}, {BasisBits});
    123130
Note: See TracChangeset for help on using the changeset viewer.