Skip to content

Commit

Permalink
feat: add CLI arguments for cycles related options (#80)
Browse files Browse the repository at this point in the history
This adds a parser for the new command line format.

```
libqflex
    mode            timing
    lib-path        ${ROOT}/../out/lib/Debug/libknottykraken.so
    cfg-path        ${ROOT}/../timing.cfg
    cycles          1000000:100000:100000
    debug           vverb
    ${EXTRA}
```

The lines `cycles 1000000:100000:100000`, represents `cycles until stop,
statistic dump interval, delay before logging`
The parser allows having empty values. But require the 1st to be always
set
  • Loading branch information
branylagaffe authored Oct 29, 2024
2 parents 9ad4d7c + f074c14 commit 42e8ae1
Show file tree
Hide file tree
Showing 19 changed files with 69 additions and 5,295 deletions.
1 change: 0 additions & 1 deletion components/Cache/CacheImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ class FLEXUS_COMPONENT(Cache)

uint32_t transferTime(const MemoryTransport& trans)
{
if (theFlexus->isFastMode()) { return 0; }
DBG_Assert(trans[MemoryMessageTag] != nullptr);
return ((trans[MemoryMessageTag]->reqSize() > 0) ? cfg.BusTime_Data : cfg.BusTime_NoData) - 1;
}
Expand Down
2 changes: 1 addition & 1 deletion components/NetShim/MemoryNetworkImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class FLEXUS_COMPONENT(MemoryNetwork)
1; // Note, this field really needs to be added to the NetworkMessage
msg->networkVC = 0;
msg->transmitLatency = transport[NetworkMessageTag]->size;
msg->flexusInFastMode = Flexus::Core::theFlexus->isFastMode();
msg->flexusInFastMode = false;
msg->hopCount = -1; // Note, the local switch also gets counted, so we start at -1
msg->startTS = Flexus::Core::theFlexus->cycleCount();
msg->myList = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion components/NetShim/NetShimImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class FLEXUS_COMPONENT(NetShim)
<< " dst_port=" << transport[NetworkMessageTag]->dst_port));
}
msg->transmitLatency = transport[NetworkMessageTag]->size;
msg->flexusInFastMode = Flexus::Core::theFlexus->isFastMode();
msg->flexusInFastMode = false;
msg->hopCount = -1; // Note, the local switch also gets counted, so we start at -1
msg->startTS = Flexus::Core::theFlexus->cycleCount();
msg->myList = nullptr;
Expand Down
48 changes: 0 additions & 48 deletions components/SpatialPrefetcher/SpatialPrefetcher.hpp

This file was deleted.

Loading

0 comments on commit 42e8ae1

Please sign in to comment.