Update samples (#82)

* Update samples

* Simplify the arguments of the DecodeImages function by grouping some of them into a struct.

* Modify the logic for selecting the valid images per batch

* Modify the logic for selecting the valid images per batch for jpegDecodeBatched sample too
这个提交包含在:
Aryan Salmanpour 编写, GitHub 于 2024-11-25 20:40:50 -05:00 提交
1 父节点 241f9d731c
当前提交 a4f3daef1e
12 个文件已更改
+443 -369

没有与搜索条件相匹配的文件

+4 -4
查看文件
@@ -115,11 +115,11 @@ add_test(
jpeg-decode-threads-fmt-native
COMMAND
"${CMAKE_CTEST_COMMAND}"
--build-and-test "${ROCM_PATH}/share/rocjpeg/samples/jpegDecodeMultiThreads"
"${CMAKE_CURRENT_BINARY_DIR}/jpegDecodeMultiThreads"
--build-and-test "${ROCM_PATH}/share/rocjpeg/samples/jpegDecodePerf"
"${CMAKE_CURRENT_BINARY_DIR}/jpegDecodePerf"
--build-generator "${CMAKE_GENERATOR}"
--test-command "jpegdecodemultithreads"
-i ${ROCM_PATH}/share/rocjpeg/images/ -t 2
--test-command "jpegdecodeperf"
-i ${ROCM_PATH}/share/rocjpeg/images/
)
add_test(