From 006006efb4290f007ec96f0c2e6023d53e7601ff Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 24 May 2018 15:35:05 -0700 Subject: changed assertion to warning when binding to previously bound name. --- src/cuda-sim/cuda-sim.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cuda-sim/cuda-sim.cc') diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc index 2a197c3..34368ce 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -157,7 +157,9 @@ void gpgpu_t::gpgpu_ptx_sim_bindTextureToArray(const struct textureReference* te std::map::const_iterator t=m_NameToCudaArray.find(texname); //check that there's nothing there first - assert(t == m_NameToCudaArray.end()); + if(t != m_NameToCudaArray.end()){ + printf("GPGPU-Sim PTX: Warning: binding to texref associated with %s, which was previously bound.\nImplicitly unbinding texref associated to %s first\n", texname.c_str(), texname.c_str()); + } m_NameToCudaArray[texname] = array; unsigned int texel_size_bits = array->desc.w + array->desc.x + array->desc.y + array->desc.z; unsigned int texel_size = texel_size_bits/8; -- cgit v1.3