diff options
| author | Suchita Pati <[email protected]> | 2019-04-10 23:27:42 -0500 |
|---|---|---|
| committer | Suchita Pati <[email protected]> | 2019-04-10 23:27:42 -0500 |
| commit | 73050b730b31e9f58f8c2a0bfc4b3a8cd92be7ff (patch) | |
| tree | aa5f618cf8fd6af967fdbcd25e90cf9953b08a86 /src/abstract_hardware_model.cc | |
| parent | 170bfe92035bf44e773601e160ba95cbbabf91da (diff) | |
Adding texture Fix
Diffstat (limited to 'src/abstract_hardware_model.cc')
| -rw-r--r-- | src/abstract_hardware_model.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc index 307df40..3db87c9 100644 --- a/src/abstract_hardware_model.cc +++ b/src/abstract_hardware_model.cc @@ -688,7 +688,7 @@ unsigned g_kernel_launch_latency; unsigned kernel_info_t::m_next_uid = 1; -kernel_info_t::kernel_info_t( dim3 gridDim, dim3 blockDim, class function_info *entry ) +kernel_info_t::kernel_info_t( dim3 gridDim, dim3 blockDim, class function_info *entry, std::map<std::string, const struct cudaArray*> NameToCudaArray, std::map<std::string, const struct textureInfo*> NameToTexureInfo) { m_kernel_entry=entry; m_grid_dim=gridDim; @@ -708,6 +708,8 @@ kernel_info_t::kernel_info_t( dim3 gridDim, dim3 blockDim, class function_info * m_launch_latency = g_kernel_launch_latency; volta_cache_config_set=false; + m_NameToCudaArray = NameToCudaArray; + m_NameToTexureInfo = NameToTexureInfo; } kernel_info_t::~kernel_info_t() |
