Skip to content

[Issue]: rocDecode ctest fails due to bad param #479

Description

@daniellegillai

Problem Description

The video_tests_rocdecode ctest in tests/cpp_api/CMakeLists.txt (line 239) passes 2 as the hardware_decode_mode arg for video_tests.cpp. However, video_tests.cpp expects this arg to be either 0 or 1. Passing in 2 instead causes mismatched handling later in the code, with the testing file variously checking if the arg is > 0 (line 133) and if it == 1 (line 135). This caused the test to hang and eventually timeout.

Current test configuration:
${ROCM_PATH}/share/rocal/test/data/videos/AMD_driving_virtual_20.mp4 1 1 2

Expected values (from usage message): <video_file/video_dataset_folder/text file> <reader_case> <processing_device=1/cpu=0> <hardware_decode_mode=0/1>

Operating System

Ubuntu 24.04.4 LTS (Noble Numbat)

CPU

AMD Ryzen 9 9950X 16-Core Processor

GPU

AMD Radeon RX 9070 XT

ROCm Version

ROCm 7.13

ROCm Component

rocAL

Steps to Reproduce

After building, run ctest -R video_tests_rocdecode

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

rocminfo --support output
Paste output here

Additional Information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions