diff options
| author | Timothy G Rogers <[email protected]> | 2018-03-25 18:28:39 -0400 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2018-03-25 18:28:39 -0400 |
| commit | f7ff51824547d017bdfffcaff79a762ff07c6fdf (patch) | |
| tree | 331aefc5a9df52299b7e0f9d8de56439cf187d36 /src/cuda-sim/ptx_ir.h | |
| parent | 82a62207406739bc8597326aa473a99007029d75 (diff) | |
| parent | 4e91a60a48b07f41f4bfb4d59fa2355024a3914b (diff) | |
Merge pull request #13 from tgrogers/dev-purdue-integration
Support for lonestar and modifying our configs to not completely screw up when the user configures the cache preference
Diffstat (limited to 'src/cuda-sim/ptx_ir.h')
| -rw-r--r-- | src/cuda-sim/ptx_ir.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_ir.h b/src/cuda-sim/ptx_ir.h index 9ad1571..36ef3d5 100644 --- a/src/cuda-sim/ptx_ir.h +++ b/src/cuda-sim/ptx_ir.h @@ -1245,6 +1245,7 @@ public: const struct gpgpu_ptx_sim_info* get_kernel_info () const { + assert (m_kernel_info.maxthreads == maxnt_id); return &m_kernel_info; } @@ -1252,6 +1253,8 @@ public: m_kernel_info = info; m_kernel_info.ptx_version = 10*get_ptx_version().ver(); m_kernel_info.sm_target = get_ptx_version().target(); + // THIS DEPENDS ON ptxas being called after the PTX is parsed. + m_kernel_info.maxthreads = maxnt_id; } symbol_table *get_symtab() { @@ -1275,7 +1278,11 @@ public: } bool is_entry_point() const { return m_entry_point; } + void set_maxnt_id(unsigned maxthreads) { maxnt_id = maxthreads;} + unsigned get_maxnt_id() { return maxnt_id;} + private: + unsigned maxnt_id; unsigned m_uid; unsigned m_local_mem_framesize; bool m_entry_point; |
