mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
fixed uuid format
This commit is contained in:
parent
382b686d59
commit
48b1ab7494
2 changed files with 4 additions and 2 deletions
|
@ -215,6 +215,7 @@ uint64_t dpi_uuid_gen(bool reset, int wid) {
|
|||
return 0;
|
||||
}
|
||||
uint32_t instr_uuid = g_uuid_gens[wid]++;
|
||||
uint64_t uuid = (uint64_t(instr_uuid) << 12) | wid;
|
||||
uint32_t total_warps = NUM_WARPS * NUM_CORES * NUM_CLUSTERS;
|
||||
uint64_t uuid = uint64_t(instr_uuid) * total_warps + wid;
|
||||
return uuid;
|
||||
}
|
|
@ -167,7 +167,8 @@ instr_trace_t* Emulator::step() {
|
|||
#ifndef NDEBUG
|
||||
uint32_t instr_uuid = warp.uuid++;
|
||||
uint32_t g_wid = core_->id() * arch_.num_warps() + scheduled_warp;
|
||||
uint64_t uuid = (uint64_t(instr_uuid) << 12) | g_wid;
|
||||
uint32_t total_warps = arch_.num_warps() * arch_.num_cores() * arch_.num_clusters();
|
||||
uint64_t uuid = uint64_t(instr_uuid) * total_warps + g_wid;
|
||||
#else
|
||||
uint64_t uuid = 0;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue