summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.cc
diff options
context:
space:
mode:
authorTimothy G Rogers <[email protected]>2018-03-27 10:20:26 -0400
committerGitHub Enterprise <[email protected]>2018-03-27 10:20:26 -0400
commitd936eadf3c10dc70cc89f59e36b9984a137c53cf (patch)
tree40cecc895d6ba261428c530b4d99cec81d775206 /src/gpgpu-sim/shader.cc
parent89c198ba1f271bfc12a6c7d9c471e62a8daa5634 (diff)
parent28ac03ba1056718d9ec904f3b76319d8e9e2dfd0 (diff)
Merge branch 'dev-purdue-integration' into dev-purdue-integration
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
-rw-r--r--src/gpgpu-sim/shader.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index 905139c..c27d532 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -2647,6 +2647,10 @@ unsigned int shader_core_config::max_cta( const kernel_info_t &k ) const
assert( result <= MAX_CTA_PER_SHADER );
if (result < 1) {
printf ("GPGPU-Sim uArch: ERROR ** Kernel requires more resources than shader has.\n");
+ if(gpgpu_ignore_resources_limitation) {
+ printf ("GPGPU-Sim uArch: gpgpu_ignore_resources_limitation is set, ignore the ERROR!\n");
+ return 1;
+ }
abort();
}