summaryrefslogtreecommitdiff
path: root/src/utilities
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-05-17 10:45:10 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2018-05-17 10:45:10 +0100
commitb855af681f2d6b7cf6d80504fd4601c64f2034c1 (patch)
treee2b9120619ea2e05e5371eadf69ee9274c5bb1e7 /src/utilities
parent8b381480f8bd3b40cc030b07a599da10092b8117 (diff)
Added a canary region for overflow detection to the tuners
Diffstat (limited to 'src/utilities')
-rw-r--r--src/utilities/utilities.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utilities/utilities.hpp b/src/utilities/utilities.hpp
index 0edf77fe..84591f70 100644
--- a/src/utilities/utilities.hpp
+++ b/src/utilities/utilities.hpp
@@ -52,6 +52,9 @@ const std::string kKhronosIntelSubgroups = "cl_intel_subgroups";
// Catched an unknown error
constexpr auto kUnknownError = -999;
+// Canary size to add to buffers to check for buffer overflows
+constexpr auto kCanarySize = 127;
+
// =================================================================================================
// The routine-specific arguments in string form