From 06cf9339ed4b86d559c837dcb7c1c273ae6a35eb Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Tue, 31 Mar 2020 15:59:41 +0100 Subject: COMPMID-3294: Add AssetLibrary instance using a fixed seed - Add fixed_seed instance for future use - Make Copy fixture use the new instance to validate functionality Change-Id: I7e8c1504b8db3203213d084b300f10ecd384f7fa Signed-off-by: Sang-Hoon Park Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3107 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- tests/main.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/main.cpp') diff --git a/tests/main.cpp b/tests/main.cpp index bbb43c9a39..17342fc2c1 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -75,7 +75,11 @@ namespace arm_compute { namespace test { -std::unique_ptr library; +std::unique_ptr library; + +static constexpr uint32_t fixed_seed = 1; +std::unique_ptr fixed_library; + extern std::unique_ptr parameters; } // namespace test } // namespace arm_compute @@ -308,7 +312,8 @@ int main(int argc, char **argv) return 0; } - library = support::cpp14::make_unique(assets->value(), seed->value()); + library = support::cpp14::make_unique(assets->value(), seed->value()); + fixed_library = support::cpp14::make_unique(assets->value(), fixed_seed); if(!parser.validate()) { -- cgit v1.2.1