From 47afff48be8f59c6cfcb86eded3a337b63130b18 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Tue, 28 Dec 2010 17:25:52 -0800 Subject: - parameter memory and active threads now part of kernel_info_t: Parameters are finalized at kernel launch, which means the contents of parameter memory are initialized. Kernel arguement names have a fixed order, hence same address should be assigned on subsequent kernel launches of same kernel in other streams provided the data size param_t::size of arguments for each kernel launch is identical (an assertion has been added to check this is true). - passing regression [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8303] --- src/gpgpu-sim/gpu-sim.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gpgpu-sim/gpu-sim.h') diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h index 5631ab9..f229965 100644 --- a/src/gpgpu-sim/gpu-sim.h +++ b/src/gpgpu-sim/gpu-sim.h @@ -242,10 +242,10 @@ public: void set_prop( struct cudaDeviceProp *prop ); - void launch( kernel_info_t &kinfo ); + void launch( kernel_info_t *kinfo ); bool can_start_kernel(); unsigned finished_kernel(); - void set_kernel_done( unsigned uid ) { m_finished_kernel.push_back(uid); } + void set_kernel_done( kernel_info_t *kernel ); void init(); void cycle(); @@ -289,7 +289,7 @@ private: class simt_core_cluster **m_cluster; class memory_partition_unit **m_memory_partition_unit; - std::vector m_running_kernels; + std::vector m_running_kernels; unsigned m_last_issued_kernel; std::list m_finished_kernel; -- cgit v1.3