summaryrefslogtreecommitdiff
path: root/src/cuda-sim
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-05-17 16:49:55 -0700
committerJonathan <[email protected]>2018-05-17 16:49:55 -0700
commitab1f21e94756b4276e97124a7f2af6bec645c81e (patch)
treec63b03d6a4200cc17ea8db4ca4d3617a82d47643 /src/cuda-sim
parent9476c4ccf17949a67a430155dfc93e66ca73d4a8 (diff)
changed for loop, pass pipeline?
Diffstat (limited to 'src/cuda-sim')
-rw-r--r--src/cuda-sim/cuda-sim.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc
index 39ffa63..656091c 100644
--- a/src/cuda-sim/cuda-sim.cc
+++ b/src/cuda-sim/cuda-sim.cc
@@ -186,11 +186,11 @@ void gpgpu_t::gpgpu_ptx_sim_bindTextureToArray(const struct textureReference* te
//tests if texref pointer matches any pointer in m_NameToTextureRef map
int trMatches = 0;
- for (auto& kv : m_NameToTextureRef){
- const struct textureReference* tr = kv.second;
+ for (std::map<std::string,const struct textureReference*>::const_iterator kv = m_NameToTextureRef.begin(); kv!= m_NameToTextureRef.end(); kv ++){
+ const struct textureReference* tr = kv->second;
if (tr==texref){
m_TextureRefToCudaArray[tr] = array;
- //printf("%s\n", kv.first);
+ printf("%s\n", kv->first.c_str());
trMatches++;
}
}