summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFJShen <[email protected]>2022-03-29 11:05:00 -0400
committerGitHub <[email protected]>2022-03-29 11:05:00 -0400
commitee9b6268818053daafaabdd31cdc4c5b95cbcb3d (patch)
tree56b47e27fe1ff870c9b1f9477223b846bb45518f /src
parentd38b3009467261e86fcbee63ecbc102c947beb0f (diff)
Update shader.h
This is a relatively critical bug comparing to other memory errors that deserves early merging.
Diffstat (limited to 'src')
-rw-r--r--src/gpgpu-sim/shader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index c3e6f93..b447e28 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -957,7 +957,7 @@ class opndcoll_rfu_t { // operand collector based register file unit
m_sub_core_model = sub_core_model;
m_num_warp_scheds = num_warp_scheds;
if (m_sub_core_model) {
- m_last_cu_set = new unsigned(m_num_warp_scheds);
+ m_last_cu_set = new unsigned[m_num_warp_scheds];
for (unsigned i = 0; i < m_num_warp_scheds; i++)
{
m_last_cu_set[i] = i * m_num_collectors / m_num_warp_scheds;