From dc51fed5c95016d2d7dfd258e955d238586c9a29 Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Sat, 25 Feb 2012 23:51:20 -0800 Subject: Adding a check for copmliance between the runtime simulation config and MAX_THREAD_PER_SM. Also decreased LOCAL_MEM_SIZE_MAX to 8kB to make it fit within our allotted memory space (otherwise the simulator may mistaken global memory access as local memory accesses). [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11520] --- src/gpgpu-sim/shader.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gpgpu-sim') diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h index fbecac3..f8b0e58 100644 --- a/src/gpgpu-sim/shader.h +++ b/src/gpgpu-sim/shader.h @@ -918,6 +918,11 @@ struct shader_core_config : public core_config printf("GPGPU-Sim uArch: error while parsing configuration string gpgpu_shader_core_pipeline_opt\n"); abort(); } + if (n_thread_per_shader > MAX_THREAD_PER_SM) { + printf("GPGPU-Sim uArch: Error ** increase MAX_THREAD_PER_SM in abstract_hardware_model.h from %u to %u\n", + MAX_THREAD_PER_SM, n_thread_per_shader); + abort(); + } max_warps_per_shader = n_thread_per_shader/warp_size; assert( !(n_thread_per_shader % warp_size) ); max_sfu_latency = 32; -- cgit v1.3