Skip to content

Commit

Permalink
remove MAX_ACCESSES_PER_INSN static allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
barnes88 committed Jun 6, 2024
1 parent 61ba35c commit 86b8428
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gpu-simulator/trace-driven/trace_driven.cc
Original file line number Diff line number Diff line change
Expand Up @@ -617,13 +617,13 @@ void trace_shader_core_ctx::checkExecutionStatusAndUpdate(warp_inst_t &inst,
if (inst.isatomic()) m_warp[inst.warp_id()]->inc_n_atomic();

if (inst.space.is_local() && (inst.is_load() || inst.is_store())) {
new_addr_type localaddrs[MAX_ACCESSES_PER_INSN_PER_THREAD];
std::vector<new_addr_type> localaddrs;
unsigned num_addrs;
num_addrs = translate_local_memaddr(
inst.get_addr(t), tid,
m_config->n_simt_clusters * m_config->n_simt_cores_per_cluster,
inst.data_size, (new_addr_type *)localaddrs);
inst.set_addr(t, (new_addr_type *)localaddrs, num_addrs);
inst.data_size, localaddrs);
inst.set_addr(t, localaddrs);
}

if (inst.op == EXIT_OPS) {
Expand Down

0 comments on commit 86b8428

Please sign in to comment.