Skip to content

Commit 9653409

Browse files
authored
Run basic CUDA tests on 4.x/5.x PR (#258)
1 parent 0da8141 commit 9653409

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/OCV-PR-4.x-U20-Cuda.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@ jobs:
136136
run: |
137137
cd $HOME/build
138138
ninja -j ${{ env.PARALLEL_JOBS }} | tee $HOME/build/build-log.txt
139+
- name: Accuracy:cudev
140+
timeout-minutes: 60
141+
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
142+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
143+
- name: Accuracy:core
144+
timeout-minutes: 60
145+
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
146+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_core --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }} ${{ env.EXTRA_GTEST_OPTIONS }}
147+
env:
148+
GTEST_FILTER_STRING: '*GPU*:*Gpu*:*CUDA*'
139149
- name: Accuracy:dnn
140150
timeout-minutes: 60
141151
if: ${{ always() && steps.build-opencv.outcome == 'success' }}

.github/workflows/OCV-PR-5.x-U20-Cuda.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ jobs:
137137
run: |
138138
cd $HOME/build
139139
ninja -j ${{ env.PARALLEL_JOBS }} | tee $HOME/build/build-log.txt
140+
- name: Accuracy:cudev
141+
timeout-minutes: 60
142+
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
143+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
144+
- name: Accuracy:core
145+
timeout-minutes: 60
146+
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
147+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_core --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }} ${{ env.EXTRA_GTEST_OPTIONS }}
148+
env:
149+
GTEST_FILTER_STRING: '*GPU*:*Gpu*:*CUDA*'
140150
- name: Accuracy:DNN_AUTO
141151
timeout-minutes: 60
142152
if: ${{ always() && steps.build-opencv.outcome == 'success' }}

0 commit comments

Comments
 (0)