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/abstract_hardware_model.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 6c2b190..2fdebfc 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -268,7 +268,7 @@ protected: #define GLOBAL_HEAP_START 0x80000000 // start allocating from this address (lower values used for allocating globals in .ptx file) #define SHARED_MEM_SIZE_MAX (64*1024) -#define LOCAL_MEM_SIZE_MAX (16*1024) +#define LOCAL_MEM_SIZE_MAX (8*1024) #define MAX_STREAMING_MULTIPROCESSORS 64 #define MAX_THREAD_PER_SM 2048 #define TOTAL_LOCAL_MEM_PER_SM (MAX_THREAD_PER_SM*LOCAL_MEM_SIZE_MAX) -- cgit v1.3