Ignore:
Timestamp:
Apr 25, 2017, 12:27:24 PM (2 years ago)
Author:
cameron
Message:

ShowKernelCycles? option

File:
1 edited

Legend:

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

    r5422 r5424  
    6969int ThreadNum;
    7070bool EnableAsserts;
     71bool EnableCycleCounter;
    7172#ifndef NDEBUG
    7273#define DEFAULT_TO_TRUE_IN_DEBUG_MODE true
     
    8081static cl::opt<int, true> ThreadNumOption("thread-num", cl::location(ThreadNum), cl::desc("Number of threads used for segment pipeline parallel"), cl::value_desc("positive integer"), cl::init(2));
    8182static cl::opt<bool, true> EnableAssertsOption("ea", cl::location(EnableAsserts), cl::desc("Enable Asserts"), cl::init(DEFAULT_TO_TRUE_IN_DEBUG_MODE));
     83static cl::opt<bool, true> EnableCycleCountOption("ShowKernelCycles", cl::location(EnableCycleCounter), cl::desc("Count and report CPU cycles per kernel"), cl::init(false), cl::cat(CodeGenOptions));
    8284
    8385const cl::OptionCategory * codegen_flags() {return &CodeGenOptions;}
Note: See TracChangeset for help on using the changeset viewer.