From 0068fa839d78c35f3add39d56231dbb7dd3cbe2e Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Wed, 9 Apr 2025 09:24:30 +0200 Subject: [PATCH 1/2] [CI] Fix perf tests run - Set missing OMP_NUM_THREADS env variable - Fix fail on error strategy --- .github/workflows/main.yml | 4 +++- tasks/stl/example/perf_tests/main.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b00a617cd..75bb98be1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1120,7 +1120,9 @@ jobs: python3 scripts/run_perf_counter.py --required-tests-number=2 - name: Run perf tests run: | - source scripts/generate_perf_results.sh + bash -e scripts/generate_perf_results.sh + env: + OMP_NUM_THREADS: 4 - name: Archive results uses: montudor/action-zip@v1 with: diff --git a/tasks/stl/example/perf_tests/main.cpp b/tasks/stl/example/perf_tests/main.cpp index 7d5065dfe..e7937bcec 100644 --- a/tasks/stl/example/perf_tests/main.cpp +++ b/tasks/stl/example/perf_tests/main.cpp @@ -11,7 +11,7 @@ #include "stl/example/include/ops_stl.hpp" TEST(nesterov_a_test_task_stl, test_pipeline_run) { - constexpr int kCount = 700; + constexpr int kCount = 450; // Create data std::vector in(kCount * kCount, 0); @@ -52,7 +52,7 @@ TEST(nesterov_a_test_task_stl, test_pipeline_run) { } TEST(nesterov_a_test_task_stl, test_task_run) { - constexpr int kCount = 700; + constexpr int kCount = 450; // Create data std::vector in(kCount * kCount, 0); From 03203a027f442285a0f3d7d50f99298ad3be6333 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Thu, 10 Apr 2025 09:42:27 +0200 Subject: [PATCH 2/2] tbb --- tasks/tbb/example/perf_tests/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/tbb/example/perf_tests/main.cpp b/tasks/tbb/example/perf_tests/main.cpp index b6e4fedae..7a6fee999 100644 --- a/tasks/tbb/example/perf_tests/main.cpp +++ b/tasks/tbb/example/perf_tests/main.cpp @@ -11,7 +11,7 @@ #include "tbb/example/include/ops_tbb.hpp" TEST(nesterov_a_test_task_tbb, test_pipeline_run) { - constexpr int kCount = 700; + constexpr int kCount = 450; // Create data std::vector in(kCount * kCount, 0); @@ -52,7 +52,7 @@ TEST(nesterov_a_test_task_tbb, test_pipeline_run) { } TEST(nesterov_a_test_task_tbb, test_task_run) { - constexpr int kCount = 700; + constexpr int kCount = 450; // Create data std::vector in(kCount * kCount, 0);