diff options
| author | Timothy G Rogers <[email protected]> | 2018-03-27 10:20:26 -0400 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2018-03-27 10:20:26 -0400 |
| commit | d936eadf3c10dc70cc89f59e36b9984a137c53cf (patch) | |
| tree | 40cecc895d6ba261428c530b4d99cec81d775206 /src/abstract_hardware_model.h | |
| parent | 89c198ba1f271bfc12a6c7d9c471e62a8daa5634 (diff) | |
| parent | 28ac03ba1056718d9ec904f3b76319d8e9e2dfd0 (diff) | |
Merge branch 'dev-purdue-integration' 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; }; |
