diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-15 13:57:48 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-15 13:57:48 -0400 |
| commit | 971722f51189e80034a9c80a4846a4ec045f0d4d (patch) | |
| tree | f4069e1be6c6aa0541fd5d54e252360f07107b18 /src/cuda-sim/ptx_sim.cc | |
| parent | 3b88f9db669d8ec9ffc477352dcfd2a3d423781f (diff) | |
Move g_ptx_cta_info_uid and symbol::sm_next_uid
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_sim.cc')
| -rw-r--r-- | src/cuda-sim/ptx_sim.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc index 62bb529..949ee66 100644 --- a/src/cuda-sim/ptx_sim.cc +++ b/src/cuda-sim/ptx_sim.cc @@ -37,7 +37,6 @@ typedef void * yyscan_t; void feature_not_implemented( const char *f ); -unsigned long long g_ptx_cta_info_uid = 1; ptx_cta_info::ptx_cta_info( unsigned sm_idx, gpgpu_context* ctx ) { @@ -45,7 +44,7 @@ ptx_cta_info::ptx_cta_info( unsigned sm_idx, gpgpu_context* ctx ) ctx->func_sim->g_ptx_cta_info_sm_idx_used.insert(sm_idx); m_sm_idx = sm_idx; - m_uid = g_ptx_cta_info_uid++; + m_uid = (ctx->g_ptx_cta_info_uid)++; m_bar_threads = 0; gpgpu_ctx = ctx; } |
