reverting uuid format to ease file diff

This commit is contained in:
Blaise Tine 2024-07-29 00:05:51 -07:00
parent 48b1ab7494
commit 2e060faaf4
2 changed files with 2 additions and 4 deletions

View file

@ -215,7 +215,6 @@ uint64_t dpi_uuid_gen(bool reset, int wid) {
return 0;
}
uint32_t instr_uuid = g_uuid_gens[wid]++;
uint32_t total_warps = NUM_WARPS * NUM_CORES * NUM_CLUSTERS;
uint64_t uuid = uint64_t(instr_uuid) * total_warps + wid;
uint64_t uuid = (uint64_t(wid) << 32) | instr_uuid;
return uuid;
}

View file

@ -167,8 +167,7 @@ instr_trace_t* Emulator::step() {
#ifndef NDEBUG
uint32_t instr_uuid = warp.uuid++;
uint32_t g_wid = core_->id() * arch_.num_warps() + scheduled_warp;
uint32_t total_warps = arch_.num_warps() * arch_.num_cores() * arch_.num_clusters();
uint64_t uuid = uint64_t(instr_uuid) * total_warps + g_wid;
uint64_t uuid = (uint64_t(g_wid) << 32) | instr_uuid;
#else
uint64_t uuid = 0;
#endif