From 99183ffd9296bc0afa68d5f3d8c4d0c400b63ff0 Mon Sep 17 00:00:00 2001 From: ywang103-amd Date: Tue, 28 Oct 2025 11:30:32 -0400 Subject: [PATCH] fix failure of pc sampling and unit tests (#1526) --- projects/rocprofiler-compute/tests/CMakeLists.txt | 1 + projects/rocprofiler-compute/tests/test_profile_general.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/projects/rocprofiler-compute/tests/CMakeLists.txt b/projects/rocprofiler-compute/tests/CMakeLists.txt index 400dc88bee..5400bb961a 100644 --- a/projects/rocprofiler-compute/tests/CMakeLists.txt +++ b/projects/rocprofiler-compute/tests/CMakeLists.txt @@ -45,6 +45,7 @@ set_target_properties( set(MAT_MUL_MAX ../sample/mat_mul_max.hip) set_source_files_properties(${MAT_MUL_MAX} PROPERTIES LANGUAGE HIP) add_executable(mat_mul_max ${MAT_MUL_MAX}) +target_compile_options(mat_mul_max PRIVATE -g -O0) set_target_properties( mat_mul_max PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/tests diff --git a/projects/rocprofiler-compute/tests/test_profile_general.py b/projects/rocprofiler-compute/tests/test_profile_general.py index e3c88b80fa..b5c6bc84c0 100644 --- a/projects/rocprofiler-compute/tests/test_profile_general.py +++ b/projects/rocprofiler-compute/tests/test_profile_general.py @@ -168,6 +168,7 @@ PC_SAMPLING_HOST_TRAP_FILES = sorted([ "pmc_perf_0.csv", "pmc_perf.csv", "ps_file_agent_info.csv", + "ps_file_kernel_trace.csv", "ps_file_pc_sampling_host_trap.csv", "ps_file_results.json", "sysinfo.csv", @@ -177,6 +178,7 @@ PC_SAMPLING_STOCHASTIC_FILES = sorted([ "pmc_perf_0.csv", "pmc_perf.csv", "ps_file_agent_info.csv", + "ps_file_kernel_trace.csv", "ps_file_pc_sampling_stochastic.csv", "ps_file_results.json", "sysinfo.csv",