From 18e0b0614611edcb19ee0a3b315c7b45e50b5595 Mon Sep 17 00:00:00 2001 From: Ahmed ElTantawy Date: Wed, 4 Mar 2015 12:02:52 -0800 Subject: initial support for CUDA 5.0, 5.5, 6.0 to get template from SDK running --- src/abstract_hardware_model.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 936d208..ba4ea29 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -443,6 +443,7 @@ private: unsigned m_texcache_linesize; }; + class gpgpu_t { public: gpgpu_t( const gpgpu_functional_sim_config &config ); @@ -497,7 +498,7 @@ protected: class memory_space *m_global_mem; class memory_space *m_tex_mem; class memory_space *m_surf_mem; - + unsigned long long m_dev_malloc; std::map m_NameToTextureRef; @@ -506,18 +507,20 @@ protected: std::map m_TextureRefToAttribute; }; -struct gpgpu_ptx_sim_kernel_info +struct gpgpu_ptx_sim_info { // Holds properties of the kernel (Kernel's resource use). // These will be set to zero if a ptxinfo file is not present. int lmem; int smem; int cmem; + int gmem; int regs; unsigned ptx_version; unsigned sm_target; }; + struct gpgpu_ptx_sim_arg { gpgpu_ptx_sim_arg() { m_start=NULL; } gpgpu_ptx_sim_arg(const void *arg, size_t size, size_t offset) -- cgit v1.3