59d3399901
- Add JPEG activity track in perfetto trace - Add JPEG decode tests to the examples - Change existing videodecode test to include JPEG testing - Rename videodecode test file to decode to include jpeg tests too - Fix a bug in the test which checks for total activity of 0 - Disable rocDecode and rocJPEG samples from the github image files
50 Zeilen
1.6 KiB
CMake
50 Zeilen
1.6 KiB
CMake
# -------------------------------------------------------------------------------------- #
|
|
#
|
|
# video decode tests
|
|
#
|
|
# -------------------------------------------------------------------------------------- #
|
|
|
|
set(_decode_environment
|
|
"${_base_environment}"
|
|
"ROCPROFSYS_ROCM_DOMAINS=hip_runtime_api,kernel_dispatch,memory_copy,rocdecode_api"
|
|
"ROCPROFSYS_ROCM_SMI_METRICS=busy,temp,power,vcn_activity,jpeg_activity,mem_usage"
|
|
"ROCPROFSYS_SAMPLING_CPUS=none")
|
|
|
|
rocprofiler_systems_add_test(
|
|
SKIP_BASELINE SKIP_RUNTIME SKIP_REWRITE
|
|
NAME video-decode
|
|
TARGET videodecode
|
|
GPU ON
|
|
ENVIRONMENT "${_decode_environment}"
|
|
RUN_ARGS -i ${PROJECT_BINARY_DIR}/videos -t 1
|
|
LABELS "decode")
|
|
|
|
rocprofiler_systems_add_validation_test(
|
|
NAME video-decode-sampling
|
|
PERFETTO_METRIC "rocm_rocdecode_api"
|
|
PERFETTO_FILE "perfetto-trace.proto"
|
|
LABELS "decode"
|
|
ARGS -l rocDecCreateVideoParser -c 2 -d 1 --counter-names "VCN Activity")
|
|
|
|
# -------------------------------------------------------------------------------------- #
|
|
#
|
|
# image decode tests
|
|
#
|
|
# -------------------------------------------------------------------------------------- #
|
|
|
|
rocprofiler_systems_add_test(
|
|
SKIP_BASELINE SKIP_RUNTIME SKIP_REWRITE
|
|
NAME image-decode
|
|
TARGET jpegdecode
|
|
GPU ON
|
|
ENVIRONMENT "${_decode_environment}"
|
|
RUN_ARGS -i ${PROJECT_BINARY_DIR}/images -b 32
|
|
LABELS "decode")
|
|
|
|
rocprofiler_systems_add_validation_test(
|
|
NAME image-decode-sampling
|
|
PERFETTO_METRIC "host"
|
|
PERFETTO_FILE "perfetto-trace.proto"
|
|
LABELS "decode"
|
|
ARGS -l jpegdecode -c 1 -d 0 --counter-names "JPEG Activity")
|