Add support for rocJPEG API tracing (#116)

- Add rocDecode API Tracing support using domain `rocjpeg_api` in ROCPROFSYS_ROCM_DOMAINS.
- Modify existing `videodecode` and `jpegdecode` ctests to verify API tracing
- Print Perfetto values for easy debugging in verbose mode
- Convert CMake error to a warning and skip building the "decode" examples if requirements are not found
This commit is contained in:
Sajina PK
2025-02-25 21:14:14 -05:00
zatwierdzone przez GitHub
rodzic a03770c060
commit 3bea1d8eac
9 zmienionych plików z 71 dodań i 26 usunięć
+10
Wyświetl plik
@@ -65,6 +65,16 @@ if(EXISTS "${ROCmVersion_DIR}/share/rocjpeg/images")
file(GLOB_RECURSE image_files "${ROCmVersion_DIR}/share/rocjpeg/images/*")
file(COPY ${image_files} DESTINATION ${CMAKE_BINARY_DIR}/images)
set(NUM_COPIES 20)
# Loop over each file and make additional copies
foreach(file ${image_files})
get_filename_component(filename ${file} NAME)
foreach(i RANGE 1 ${NUM_COPIES})
file(COPY ${file}
DESTINATION ${CMAKE_BINARY_DIR}/images/${filename}_copy${i}.jpg)
endforeach()
endforeach()
else()
message(
AUTHOR_WARNING