From 8290ad78b934601ae156e752fce5fa921cb6479d Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 17 May 2018 12:16:32 +0200 Subject: Fixed a few issues with canary region testing --- test/correctness/testblas.cpp | 2 +- test/routines/level2/xhpr.hpp | 2 +- test/routines/level2/xhpr2.hpp | 2 +- test/routines/level2/xspr.hpp | 2 +- test/routines/level2/xspr2.hpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/correctness/testblas.cpp b/test/correctness/testblas.cpp index ddd29f80..3c92565e 100644 --- a/test/correctness/testblas.cpp +++ b/test/correctness/testblas.cpp @@ -220,7 +220,7 @@ void TestBlas::TestRegular(std::vector> &test_vector, const st } // Checks for differences in the 'canary' region to detect buffer overflows for (auto canary_id=size_t{0}; canary_id &args) { return args.ap_size - args.ap_offset; } + static size_t ResultID1(const Arguments &args) { return GetSizeAP(args) - args.ap_offset; } static size_t ResultID2(const Arguments &) { return 1; } // N/A for this routine static size_t GetResultIndex(const Arguments &args, const size_t id1, const size_t) { return id1 + args.ap_offset; diff --git a/test/routines/level2/xhpr2.hpp b/test/routines/level2/xhpr2.hpp index 433a5a93..ed37e175 100644 --- a/test/routines/level2/xhpr2.hpp +++ b/test/routines/level2/xhpr2.hpp @@ -148,7 +148,7 @@ class TestXhpr2 { } // Describes how to compute the indices of the result buffer - static size_t ResultID1(const Arguments &args) { return args.ap_size - args.ap_offset; } + static size_t ResultID1(const Arguments &args) { return GetSizeAP(args) - args.ap_offset; } static size_t ResultID2(const Arguments &) { return 1; } // N/A for this routine static size_t GetResultIndex(const Arguments &args, const size_t id1, const size_t) { return id1 + args.ap_offset; diff --git a/test/routines/level2/xspr.hpp b/test/routines/level2/xspr.hpp index af17b8cd..3f0dfe62 100644 --- a/test/routines/level2/xspr.hpp +++ b/test/routines/level2/xspr.hpp @@ -139,7 +139,7 @@ class TestXspr { } // Describes how to compute the indices of the result buffer - static size_t ResultID1(const Arguments &args) { return args.ap_size - args.ap_offset; } + static size_t ResultID1(const Arguments &args) { return GetSizeAP(args) - args.ap_offset; } static size_t ResultID2(const Arguments &) { return 1; } // N/A for this routine static size_t GetResultIndex(const Arguments &args, const size_t id1, const size_t) { return id1 + args.ap_offset; diff --git a/test/routines/level2/xspr2.hpp b/test/routines/level2/xspr2.hpp index b615aca7..b91eab24 100644 --- a/test/routines/level2/xspr2.hpp +++ b/test/routines/level2/xspr2.hpp @@ -148,7 +148,7 @@ class TestXspr2 { } // Describes how to compute the indices of the result buffer - static size_t ResultID1(const Arguments &args) { return args.ap_size - args.ap_offset; } + static size_t ResultID1(const Arguments &args) { return GetSizeAP(args) - args.ap_offset; } static size_t ResultID2(const Arguments &) { return 1; } // N/A for this routine static size_t GetResultIndex(const Arguments &args, const size_t id1, const size_t) { return id1 + args.ap_offset; -- cgit v1.2.3