Skip to content

Commit 4ec1eed

Browse files
authored
Cudacodec dependencies fix (#72)
1 parent 514956d commit 4ec1eed

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

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

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_call:
1010

1111
env:
12-
EXTRA_CMAKE_OPTIONS: '-DBUILD_DOCS=ON -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 -DOPENCV_DOWNLOAD_PATH=/home/ci/binaries_cache -DBUILD_EXAMPLES=ON -DOPENCV_ENABLE_NONFREE=ON -DWITH_CUDA=ON -DWITH_NVCUVID=ON -DCUDA_ARCH_BIN=6.1 -DWITH_VA=OFF'
12+
EXTRA_CMAKE_OPTIONS: '-DBUILD_DOCS=ON -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 -DOPENCV_DOWNLOAD_PATH=/home/ci/binaries_cache -DBUILD_EXAMPLES=ON -DOPENCV_ENABLE_NONFREE=ON -DWITH_CUDA=ON -DWITH_NVCUVID=ON -DCUDA_ARCH_BIN=6.1 -DWITH_VA=OFF -DCUDA_CUDA_LIBRARY=/lib/x86_64-linux-gnu/libcuda.so.1 -DCUDA_nvcuvid_LIBRARY=/lib/x86_64-linux-gnu/libnvcuvid.so.1'
1313
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
1414
PR_AUTHOR_FORK: ${{ github.event.pull_request.head.repo.full_name }}
1515
SOURCE_BRANCH_NAME: ${{ github.head_ref }}
@@ -34,6 +34,8 @@ jobs:
3434
- /home/opencv-cn/ci_cache/opencv:/home/ci/.ccache
3535
- /home/opencv-cn/binaries_cache:/home/ci/binaries_cache
3636
- /usr/local/cuda:/usr/local/cuda
37+
- /lib/x86_64-linux-gnu/libnvidia-encode.so.1:/lib/x86_64-linux-gnu/libnvidia-encode.so.1
38+
- /lib/x86_64-linux-gnu/libnvcuvid.so.1:/lib/x86_64-linux-gnu/libnvcuvid.so.1
3739
steps:
3840
- name: Brief system information
3941
timeout-minutes: 60
@@ -106,6 +108,8 @@ jobs:
106108
cd $HOME/build
107109
ninja -j ${{ env.PARALLEL_JOBS }} | tee $HOME/build/build-log.txt
108110
# Tests are not stable, failures after 'CUDA/GpuMat_SetTo.Zero' test happen everytime
111+
# The issue in CUDA_Event/AsyncEvent.Timing/*
112+
# https://github.com/opencv/opencv_contrib/issues/3361
109113
# - name: Accuracy:cudaarithm
110114
# timeout-minutes: 60
111115
# if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
@@ -114,11 +118,12 @@ jobs:
114118
timeout-minutes: 60
115119
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
116120
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudabgsegm --test_threads=${{ env.PARALLEL_JOBS }}
117-
# All tests fail if '-DWITH_NVCUVID=ON' flag is set
118-
# - name: Accuracy:cudacodec
119-
# timeout-minutes: 60
120-
# if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
121-
# run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudacodec --test_threads=${{ env.PARALLEL_JOBS }}
121+
- name: Accuracy:cudacodec
122+
timeout-minutes: 60
123+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
124+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudacodec --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }}
125+
env:
126+
GTEST_FILTER_STRING: '-CUDA_Codec/CheckKeyFrame.Reader/8:CUDA_Codec/CheckKeyFrame.Reader/9:CUDA_Codec/Video.Reader/8:CUDA_Codec/Video.Reader/9'
122127
- name: Accuracy:cudafeatures2d
123128
timeout-minutes: 60
124129
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
@@ -169,11 +174,10 @@ jobs:
169174
timeout-minutes: 60
170175
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
171176
run: cd $HOME/build && xvfb-run -a bin/opencv_perf_cudabgsegm --perf_min_samples=1 --perf_force_samples=1 --perf_verify_sanity --skip_unstable=1 --perf_threads=${{ env.PARALLEL_JOBS }}
172-
# All tests fail if '-DWITH_NVCUVID=ON' flag is set
173-
# - name: Performance:cudacodec
174-
# timeout-minutes: 60
175-
# if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
176-
# run: cd $HOME/build && xvfb-run -a bin/opencv_perf_cudacodec --perf_min_samples=1 --perf_force_samples=1 --perf_verify_sanity --skip_unstable=1 --perf_threads=${{ env.PARALLEL_JOBS }}
177+
- name: Performance:cudacodec
178+
timeout-minutes: 60
179+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
180+
run: cd $HOME/build && xvfb-run -a bin/opencv_perf_cudacodec --perf_threads=${{ env.PARALLEL_JOBS }}
177181
- name: Performance:cudafeatures2d
178182
timeout-minutes: 60
179183
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}

0 commit comments

Comments
 (0)