diff options
| author | Akshay Jain <[email protected]> | 2018-04-01 12:51:29 -0400 |
|---|---|---|
| committer | Akshay Jain <[email protected]> | 2018-04-01 12:51:29 -0400 |
| commit | 12f2a2c791747dc38a53553026ed8122e8e08988 (patch) | |
| tree | 14083fb3fe30b8801ff58de738b66cde9cee80f8 /src/abstract_hardware_model.h | |
| parent | 0c6928caf8814bf9bd37602bffe6b7b0021f2585 (diff) | |
| parent | f373275550b689efaf9c60017ff11d4450d71091 (diff) | |
Merge branch 'dev-purdue-integration' of https://github.rcac.purdue.edu/jain156/gpgpu-sim_distribution into dev-purdue-integration
Diffstat (limited to 'src/abstract_hardware_model.h')
| -rw-r--r-- | src/abstract_hardware_model.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 9ba31d9..c115cdf 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -517,7 +517,14 @@ public: const struct textureReference* get_texref(const std::string &texname) const { std::map<std::string, const struct textureReference*>::const_iterator t=m_NameToTextureRef.find(texname); - assert( t != m_NameToTextureRef.end() ); + if( t == m_NameToTextureRef.end() ) { + // search for :: prefixed names + std::string temp("::" + texname); + t=m_NameToTextureRef.find(temp); + } + + assert(t != m_NameToTextureRef.end()); + return t->second; } const struct cudaArray* get_texarray( const struct textureReference *texref ) const @@ -568,6 +575,7 @@ struct gpgpu_ptx_sim_info int cmem; int gmem; int regs; + unsigned maxthreads; unsigned ptx_version; unsigned sm_target; }; |
