Ignore:
Timestamp:
Nov 2, 2017, 10:22:06 AM (2 years ago)
Author:
cameron
Message:

EnableAsserts? and EnableCycleCounter? are DebugOptions? (disable object caching)

File:
1 edited

Legend:

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

    r5656 r5721  
    3333                        clEnumVal(TraceCounts, "Show kernel processed and produced item counts."),
    3434                        clEnumVal(TraceDynamicBuffers, "Show dynamic buffer allocations and deallocations."),
     35                        clEnumVal(EnableAsserts, "Enable built-in Parabix framework asserts in generated IR."),
     36                        clEnumVal(EnableCycleCounter, "Count and report CPU cycles per kernel."),
    3537                        clEnumValEnd), cl::cat(CodeGenOptions));
    3638
     
    7173                                          cl::desc("Number of threads used for segment pipeline parallel"), cl::value_desc("positive integer"));
    7274
    73 
    74 static cl::opt<bool, true> EnableAssertsOption("ea", cl::location(EnableAsserts), cl::init(IN_DEBUG_MODE),
    75                                                cl::desc("Enable Asserts"), cl::cat(CodeGenOptions));
    76 
    77 static cl::opt<bool, true> EnableCycleCountOption("ShowKernelCycles", cl::location(EnableCycleCounter), cl::init(false),
    78                                              cl::desc("Count and report CPU cycles per kernel"), cl::cat(CodeGenOptions));
    7975
    8076static cl::opt<bool, true> pipelineParallelOption("enable-pipeline-parallel", cl::location(PipelineParallel), cl::init(false),
     
    110106int ThreadNum;
    111107
    112 bool EnableAsserts;
    113 
    114 bool EnableCycleCounter;
    115 
    116108bool EnableObjectCache;
    117109
     
    148140
    149141bool DebugOptionIsSet(const DebugFlags flag) {
     142    if (IN_DEBUG_MODE && (flag == EnableAsserts)) return true;
    150143    return DebugOptions.isSet(flag);
    151144}
Note: See TracChangeset for help on using the changeset viewer.