From 88538614b4c55df83a2d048ced88c00a0de437b3 Mon Sep 17 00:00:00 2001 From: sampath1117 Date: Thu, 7 Mar 2024 10:27:37 +0000 Subject: [PATCH] reverted incorrect changes happened with merge --- utilities/test_suite/HIP/runTests.py | 2 +- utilities/test_suite/rpp_test_suite_common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/test_suite/HIP/runTests.py b/utilities/test_suite/HIP/runTests.py index 7b7516b7c..201a3714a 100644 --- a/utilities/test_suite/HIP/runTests.py +++ b/utilities/test_suite/HIP/runTests.py @@ -530,4 +530,4 @@ def rpp_test_suite_parser_and_validator(): checkFile = os.path.isfile(qaFilePath) if checkFile: print("---------------------------------- Results of QA Test - Tensor_hip ----------------------------------\n") - print_qa_tests_summary(qaFilePath, supportedCaseList, nonQACaseList) \ No newline at end of file + print_qa_tests_summary(qaFilePath, supportedCaseList, nonQACaseList) diff --git a/utilities/test_suite/rpp_test_suite_common.h b/utilities/test_suite/rpp_test_suite_common.h index 092db2b41..58fee0c5d 100644 --- a/utilities/test_suite/rpp_test_suite_common.h +++ b/utilities/test_suite/rpp_test_suite_common.h @@ -1210,6 +1210,7 @@ inline void randomize(unsigned int arr[], unsigned int n) { // Use a different seed value each time srand (time(NULL)); + for (unsigned int i = n - 1; i > 0; i--) { // Pick a random index from 0 to i unsigned int j = rand() % (i + 1);