summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.h
diff options
context:
space:
mode:
authorSuchita Pati <[email protected]>2019-04-17 22:09:17 -0500
committerSuchita Pati <[email protected]>2019-04-17 22:09:17 -0500
commit49c6eeff7752b5816fb08c0d6baf2b47c789bc18 (patch)
treefec42f692f3e55c265464c12c7e77f207bb7b327 /src/gpgpu-sim/gpu-sim.h
parent69af057daf1999f17b81d761c7a616f67f56adbb (diff)
Adding configs for device limits and fixed other misc bugs
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.h')
-rw-r--r--src/gpgpu-sim/gpu-sim.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h
index 6ce5524..11ffe49 100644
--- a/src/gpgpu-sim/gpu-sim.h
+++ b/src/gpgpu-sim/gpu-sim.h
@@ -337,6 +337,11 @@ public:
unsigned get_max_concurrent_kernel() const { return max_concurrent_kernel; }
unsigned checkpoint_option;
+ size_t stack_limit() const {return stack_size_limit; }
+ size_t heap_limit() const {return heap_size_limit; }
+ size_t sync_depth_limit() const {return runtime_sync_depth_limit; }
+ size_t pending_launch_count_limit() const {return runtime_pending_launch_count_limit;}
+
private:
void init_clock_domains(void );
@@ -377,7 +382,11 @@ private:
int gpu_stat_sample_freq;
int gpu_runtime_stat_flag;
-
+ // Device Limits
+ size_t stack_size_limit;
+ size_t heap_size_limit;
+ size_t runtime_sync_depth_limit;
+ size_t runtime_pending_launch_count_limit;
unsigned long long liveness_message_freq;