Skip to content

Commit e190369

Browse files
authored
[CI] Fix perf tests run (#361)
- Set missing OMP_NUM_THREADS env variable - Fix fail on error strategy
1 parent 23552af commit e190369

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,9 @@ jobs:
11201120
python3 scripts/run_perf_counter.py --required-tests-number=2
11211121
- name: Run perf tests
11221122
run: |
1123-
source scripts/generate_perf_results.sh
1123+
bash -e scripts/generate_perf_results.sh
1124+
env:
1125+
OMP_NUM_THREADS: 4
11241126
- name: Archive results
11251127
uses: montudor/action-zip@v1
11261128
with:

tasks/stl/example/perf_tests/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "stl/example/include/ops_stl.hpp"
1212

1313
TEST(nesterov_a_test_task_stl, test_pipeline_run) {
14-
constexpr int kCount = 700;
14+
constexpr int kCount = 450;
1515

1616
// Create data
1717
std::vector<int> in(kCount * kCount, 0);
@@ -52,7 +52,7 @@ TEST(nesterov_a_test_task_stl, test_pipeline_run) {
5252
}
5353

5454
TEST(nesterov_a_test_task_stl, test_task_run) {
55-
constexpr int kCount = 700;
55+
constexpr int kCount = 450;
5656

5757
// Create data
5858
std::vector<int> in(kCount * kCount, 0);

tasks/tbb/example/perf_tests/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "tbb/example/include/ops_tbb.hpp"
1212

1313
TEST(nesterov_a_test_task_tbb, test_pipeline_run) {
14-
constexpr int kCount = 700;
14+
constexpr int kCount = 450;
1515

1616
// Create data
1717
std::vector<int> in(kCount * kCount, 0);
@@ -52,7 +52,7 @@ TEST(nesterov_a_test_task_tbb, test_pipeline_run) {
5252
}
5353

5454
TEST(nesterov_a_test_task_tbb, test_task_run) {
55-
constexpr int kCount = 700;
55+
constexpr int kCount = 450;
5656

5757
// Create data
5858
std::vector<int> in(kCount * kCount, 0);

0 commit comments

Comments
 (0)