aboutsummaryrefslogtreecommitdiff
path: root/src/cuda-sim
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-05-18 11:52:31 -0700
committerJonathan <[email protected]>2018-05-18 11:52:31 -0700
commit9f6bfadf5c0b07d66b002e966940f9620f8b5623 (patch)
tree29bf79a9debf50fd4cb67f55828e76b1515e069c /src/cuda-sim
parentc8a6dfa9bb8bcec0458a58f0b702cd7b739ac1f1 (diff)
implemented unbind, currently only affects cudaArray map
Diffstat (limited to 'src/cuda-sim')
-rw-r--r--src/cuda-sim/cuda-sim.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc
index 946043a..ef16f43 100644
--- a/src/cuda-sim/cuda-sim.cc
+++ b/src/cuda-sim/cuda-sim.cc
@@ -183,6 +183,11 @@ void gpgpu_t::gpgpu_ptx_sim_bindTextureToArray(const struct textureReference* te
m_TextureRefToTexureInfo[texref] = texInfo;
}
+void gpgpu_t::gpgpu_ptx_sim_unbindTexture(const struct textureReference* texref)
+{
+ m_TextureRefToCudaArray.erase(texref);
+}
+
unsigned g_assemble_code_next_pc=0;
std::map<unsigned,function_info*> g_pc_to_finfo;
std::vector<ptx_instruction*> function_info::s_g_pc_to_insn;