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
Este cometimento está contido em:
Aryan Salmanpour criou e GitHub cometeu 2024-11-25 20:40:50 -05:00
1 ascendente 241f9d731c
cometimento a4f3daef1e
12 ficheiros modificados
+443 -369

Não existem ficheiros que correspondam à sua pesquisa

+4 -4
Ver ficheiro
@@ -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(