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

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

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
2 edited

Legend:

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

    r5706 r5721  
    659659        baseInputBuffer[i] = kb->getInputStreamPtr(name, blockIndex);
    660660
    661         if (codegen::EnableAsserts) {
     661        if (codegen::DebugOptionIsSet(codegen::EnableAsserts)) {
    662662            kb->CreateAssert(kb->CreateICmpUGE(mAvailableItemCount[i], processedItemCount[i]),
    663663                             "Processed item count cannot exceed the available item count");
     
    14361436
    14371437static inline std::string annotateKernelNameWithDebugFlags(std::string && name) {
    1438     if (codegen::EnableAsserts) {
     1438    if (codegen::DebugOptionIsSet(codegen::EnableAsserts)) {
    14391439        name += "_EA";
    14401440    }
  • icGREP/icgrep-devel/icgrep/kernels/streamset.cpp

    r5706 r5721  
    5151
    5252Value * StreamSetBuffer::getStreamBlockPtr(IDISA::IDISA_Builder * const iBuilder, Value * self, Value * addr, Value * streamIndex, const bool /* readOnly */) const {
    53     if (codegen::EnableAsserts) {
     53    if (codegen::DebugOptionIsSet(codegen::EnableAsserts)) {
    5454        Value * const count = getStreamSetCount(iBuilder, self);
    5555        Value * const index = iBuilder->CreateZExtOrTrunc(streamIndex, count->getType());
     
    6161
    6262Value * StreamSetBuffer::getStreamPackPtr(IDISA::IDISA_Builder * const iBuilder, Value * self, Value * addr, Value * streamIndex, Value * packIndex, const bool /* readOnly */) const {
    63     if (codegen::EnableAsserts) {
     63    if (codegen::DebugOptionIsSet(codegen::EnableAsserts)) {
    6464        Value * const count = getStreamSetCount(iBuilder, self);
    6565        Value * const index = iBuilder->CreateZExtOrTrunc(streamIndex, count->getType());
Note: See TracChangeset for help on using the changeset viewer.