Multi2Sim / multi2sim

Multi2Sim source code
GNU General Public License v3.0
115 stars 66 forks source link

compute_unit_id, SIMD_id and lane_id for each work_item #49

Open mahbod72 opened 7 years ago

mahbod72 commented 7 years ago

Hi everyone, I'm going to get compute_unit_id, SIMD_id and lane_id for each work_item in machine.c in Southern Islands GPUs (multi2sim-4.2). How can I do that? Any help will be appreciated

xianggong commented 7 years ago

You won't find these ids in machine.c, as this file is a part of the emulator. We only emulate the behavior of the instructions in emulator. The micro architectural details belong to the timing simulator. You can find compute_unit_id in computeunit.h in timing directory. I don't recall we use any SIMD_id or lane_id, so you might need to implement these.