Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gpu-simulator/trace-driven/trace_driven.cc
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,15 @@ void trace_gpgpu_sim::createSIMTCluster() {
for (unsigned i = 0; i < m_shader_config->n_simt_clusters; i++)
m_cluster[i] =
new trace_simt_core_cluster(this, i, m_shader_config, m_memory_config,
m_shader_stats, m_memory_stats);
m_shader_stats, m_memory_stats, m_new_stats);
}

void trace_simt_core_cluster::create_shader_core_ctx() {
m_core = new shader_core_ctx *[m_config->n_simt_cores_per_cluster];
for (unsigned i = 0; i < m_config->n_simt_cores_per_cluster; i++) {
unsigned sid = m_config->cid_to_sid(i, m_cluster_id);
m_core[i] = new trace_shader_core_ctx(m_gpu, this, sid, m_cluster_id,
m_config, m_mem_config, m_stats);
m_config, m_mem_config, m_stats, m_new_stats);
m_core_sim_order.push_back(i);
}
}
Expand Down
10 changes: 6 additions & 4 deletions gpu-simulator/trace-driven/trace_driven.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ class trace_simt_core_cluster : public simt_core_cluster {
const shader_core_config *config,
const memory_config *mem_config,
class shader_core_stats *stats,
class memory_stats_t *mstats)
: simt_core_cluster(gpu, cluster_id, config, mem_config, stats, mstats) {
class memory_stats_t *mstats,
class gpgpu_new_stats *new_stats)
: simt_core_cluster(gpu, cluster_id, config, mem_config, stats, mstats, new_stats) {
create_shader_core_ctx();
}

Expand All @@ -192,9 +193,10 @@ class trace_shader_core_ctx : public shader_core_ctx {
unsigned shader_id, unsigned tpc_id,
const shader_core_config *config,
const memory_config *mem_config,
shader_core_stats *stats)
shader_core_stats *stats,
class gpgpu_new_stats *new_stats)
: shader_core_ctx(gpu, cluster, shader_id, tpc_id, config, mem_config,
stats) {
stats, new_stats) {
create_front_pipeline();
create_shd_warp();
create_schedulers();
Expand Down
Loading