diff --git a/rtlib/iFunctions.cpp b/rtlib/iFunctions.cpp index cc934373c..e32c4f959 100755 --- a/rtlib/iFunctions.cpp +++ b/rtlib/iFunctions.cpp @@ -875,7 +875,9 @@ namespace __dp { nextFreeMemoryRegionId++; // create entry to list of allocatedMemoryRegions string var_name = allocId; - cout << "alloca: " << var << " (" << var_name << ") @ " << decodeLID(lid) << " : " << std::hex << startAddr << " - " << std::hex << endAddr << " -> #allocations: " << to_string(allocatedMemoryRegions->size()) << "\n"; + if(DP_DEBUG){ + cout << "alloca: " << var << " (" << var_name << ") @ " << decodeLID(lid) << " : " << std::hex << startAddr << " - " << std::hex << endAddr << " -> #allocations: " << to_string(allocatedMemoryRegions->size()) << "\n"; + } allocatedMemoryRegions->push_back(tuple{lid, var_name, startAddr, endAddr, numBytes, numElements}); allocatedMemRegTree->allocate_region(startAddr, endAddr, buffer, tempAddrCount, NUM_WORKERS); @@ -899,8 +901,10 @@ namespace __dp { allocatedMemRegTree->allocate_region(startAddr, endAddr, buffer, tempAddrCount, NUM_WORKERS); - cout << "new/malloc: " << decodeLID(lid) << ", " << allocId << ", " << std::hex << startAddr << " - " << std::hex << endAddr; - printf(" NumBytes: %lld\n", numBytes); + if(DP_DEBUG){ + cout << "new/malloc: " << decodeLID(lid) << ", " << allocId << ", " << std::hex << startAddr << " - " << std::hex << endAddr; + printf(" NumBytes: %lld\n", numBytes); + } allocatedMemoryRegions->push_back(tuple{lid, allocId, startAddr, endAddr, numBytes, -1}); lastHitIterator = allocatedMemoryRegions->end();