summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-05-22 17:27:28 -0700
committerJonathan <[email protected]>2018-05-25 09:11:55 -0700
commit3fcc3f8fd99b4183be4f5511800049198a9a0116 (patch)
tree2f359b92e4795b4bfb23948594b54a04a024fa08 /src
parentff958f36689c9c217eb099326ceb8f70ed3ac447 (diff)
cudaStreamWaitEvent tentative implementation
Diffstat (limited to 'src')
-rw-r--r--src/cuda-sim/cuda-sim.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc
index 05b6201..0e14dd0 100644
--- a/src/cuda-sim/cuda-sim.cc
+++ b/src/cuda-sim/cuda-sim.cc
@@ -107,7 +107,6 @@ void gpgpu_t::gpgpu_ptx_sim_bindNameToTexture(const char* name, const struct tex
std::string texname(name);
if (m_NameToTextureRef.find(texname)==m_NameToTextureRef.end()){
m_NameToTextureRef[texname] = std::set<const struct textureReference*>();
- m_NameToTextureRef[texname].insert(texref);
}else{
const struct textureReference* tr = *m_NameToTextureRef[texname].begin();
assert(tr!=NULL);
@@ -123,8 +122,8 @@ void gpgpu_t::gpgpu_ptx_sim_bindNameToTexture(const char* name, const struct tex
tr->channelDesc.w==texref->channelDesc.w&&
tr->channelDesc.f==texref->channelDesc.f
);
- m_NameToTextureRef[texname].insert(texref);
}
+ m_NameToTextureRef[texname].insert(texref);
m_TextureRefToName[texref] = texname;
const textureReferenceAttr *texAttr = new textureReferenceAttr(texref, dim, (enum cudaTextureReadMode)readmode, ext);
m_NameToAttribute[texname] = texAttr;