Skip to content
14 changes: 13 additions & 1 deletion .github/workflows/conformance-hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ jobs:
run: |
rocminfo
amd-smi || true
- name: Install rocDecode
Comment thread
kiritigowda marked this conversation as resolved.
run: |
git clone --depth 1 --filter=blob:none --sparse https://github.com/ROCm/rocm-systems.git
cd rocm-systems
git sparse-checkout set projects/rocdecode
cd projects/rocdecode
mkdir build
cd build
cmake ..
make -j$(nproc)
make install
cd ../../../../
- name: Install RPP
run: |
git clone --depth 1 --filter=blob:none --sparse https://github.com/ROCm/rocm-libraries.git
Expand Down Expand Up @@ -109,7 +121,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -DBUILD_PYPACKAGE=OFF -DCMAKE_DISABLE_FIND_PACKAGE_rocdecode=ON
cmake .. -DBUILD_PYPACKAGE=OFF
make -j$(nproc)
make install
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion tests/cpp_api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ add_test(
if(rocdecode_FOUND)
add_test(NAME video_tests_rocdecode
COMMAND video_tests
${ROCM_PATH}/share/rocal/test/data/videos/AMD_driving_virtual_20.mp4 1 1 2
${ROCM_PATH}/share/rocal/test/data/videos/AMD_driving_virtual_20.mp4 1 1 1
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/video_tests)
endif()

Expand Down
7 changes: 6 additions & 1 deletion tests/cpp_api/video_tests/video_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ int main(int argc, const char **argv) {
if (argc >= argIdx + MIN_ARG_COUNT)
enable_sequence_rearrange = atoi(argv[++argIdx]) ? true : false;

auto decoder_mode = ((decoder_type > 0) ? RocalDecodeDevice::ROCAL_HW_DECODE : RocalDecodeDevice::ROCAL_SW_DECODE);
if (!(decoder_type == 0 || decoder_type == 1)) {
std::cout << "Usage: video_tests <video_file/video_dataset_folder/text file> <reader_case> <processing_device=1/cpu=0> <hardware_decode_mode=0/1> <batch_size> <sequence_length> <frame_step> <frame_stride> <gray_scale/rgb> <display_on_off> <shuffle:0/1> <resize_width> <resize_height> <filelist_framenum:0/1> <enable_meta_data:0/1> <enable_framenumber:0/1> <enable_timestamps:0/1> <enable_sequence_rearrange:0/1>\n";
std::cout << "hardware_decode_mode must be 0 or 1\n";
return -1;
}
auto decoder_mode = ((decoder_type == 1) ? RocalDecodeDevice::ROCAL_HW_DECODE : RocalDecodeDevice::ROCAL_SW_DECODE);
RocalDecoderType rocal_decoder_type = RocalDecoderType::ROCAL_DECODER_VIDEO_FFMPEG_SW;
if (decoder_type == 1) {
rocal_decoder_type = RocalDecoderType::ROCAL_DECODER_VIDEO_ROCDECODE;
Comment thread
rrawther marked this conversation as resolved.
Expand Down
Loading