Ignore:
Timestamp:
Oct 25, 2017, 4:57:58 PM (20 months ago)
Author:
nmedfort
Message:

First stage of MultiBlockKernel? and pipeline restructuring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/lz4_index_decoder.cpp

    r5493 r5706  
    1212
    1313#ifndef NDEBUG
    14 #define DEBUG_RT_PRINT 1
     14#define DEBUG_RT_PRINT 0
    1515#else
    1616#define DEBUG_RT_PRINT 0
     
    1818
    1919#define printRTDebugMsg(MSG) \
    20     do { if (DEBUG_RT_PRINT) iBuilder->CallPrintMsgToStderr(MSG); } while (0)
     20    if (DEBUG_RT_PRINT) iBuilder->CallPrintMsgToStderr(MSG)
    2121
    2222#define printRTDebugInt(NAME, X) \
    23     do { if (DEBUG_RT_PRINT) iBuilder->CallPrintIntToStderr(NAME, X); } while (0)
     23    if (DEBUG_RT_PRINT) iBuilder->CallPrintIntToStderr(NAME, X)
    2424
    2525#define printGlobalPos() \
     
    144144    Value * producedItem = iBuilder->getProducedItemCount("literalIndexes");
    145145
    146 #ifndef NDEBUG
    147     iBuilder->CallPrintInt("ProducedItem", producedItem);
    148     // LiteralStart is adjusted to be relative to the block start, so that
    149     // the output can be compared against that of the reference implementation.
    150     Value * literalStart = iBuilder->CreateSub(iBuilder->getScalarField("LiteralStart"), iBuilder->getScalarField("LZ4BlockStart"));
    151     iBuilder->CallPrintInt("LiteralStart", literalStart);
    152     iBuilder->CallPrintInt("LiteralLength", iBuilder->getScalarField("LiteralLength"));
    153     iBuilder->CallPrintInt("MatchOffset", iBuilder->getScalarField("MatchOffset"));
    154     iBuilder->CallPrintInt("MatchLength", iBuilder->getScalarField("MatchLength"));
    155 #endif
     146//#ifndef NDEBUG
     147//    iBuilder->CallPrintInt("ProducedItem", producedItem);
     148//    // LiteralStart is adjusted to be relative to the block start, so that
     149//    // the output can be compared against that of the reference implementation.
     150//    Value * literalStart = iBuilder->CreateSub(iBuilder->getScalarField("LiteralStart"), iBuilder->getScalarField("LZ4BlockStart"));
     151//    iBuilder->CallPrintInt("LiteralStart", literalStart);
     152//    iBuilder->CallPrintInt("LiteralLength", iBuilder->getScalarField("LiteralLength"));
     153//    iBuilder->CallPrintInt("MatchOffset", iBuilder->getScalarField("MatchOffset"));
     154//    iBuilder->CallPrintInt("MatchLength", iBuilder->getScalarField("MatchLength"));
     155//#endif
    156156    printRTDebugMsg("--------------");
    157157
     
    695695    // Outputs: literal start, literal length, match offset, match length
    696696    {Binding{iBuilder->getStreamSetTy(2, 32), "literalIndexes", UnknownRate()},
    697      Binding{iBuilder->getStreamSetTy(2, 32), "matchIndexes", FixedRatio(1, 1, "literalIndexes")}},
     697     Binding{iBuilder->getStreamSetTy(2, 32), "matchIndexes", RateEqualTo("literalIndexes")}},
    698698    // Arguments
    699699    {Binding{iBuilder->getInt1Ty(), "hasBlockChecksum"}},
Note: See TracChangeset for help on using the changeset viewer.