Skip to content

Commit

Permalink
#0: Remove post proc profiler reression
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-tenstorrent committed Nov 19, 2024
1 parent 1e25da9 commit 40db1aa
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 302 deletions.
9 changes: 0 additions & 9 deletions tests/scripts/run_profiler_regressions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,6 @@ run_profiling_no_reset_test(){
remove_default_log_locations
}

run_post_proc_test(){
source python_env/bin/activate
export PYTHONPATH=$TT_METAL_HOME

pytest $PROFILER_TEST_SCRIPTS_ROOT/test_device_logs.py -vvv
}

cd $TT_METAL_HOME

#
Expand All @@ -140,8 +133,6 @@ if [[ $1 == "PROFILER" ]]; then
run_profiling_test
elif [[ $1 == "PROFILER_NO_RESET" ]]; then
run_profiling_no_reset_test
elif [[ $1 == "POST_PROC" ]]; then
run_post_proc_test
else
run_profiling_test
run_post_proc_test
Expand Down
84 changes: 0 additions & 84 deletions tests/tt_metal/tools/profiler/device_log_run.py

This file was deleted.

114 changes: 0 additions & 114 deletions tests/tt_metal/tools/profiler/populate_golden.py

This file was deleted.

93 changes: 0 additions & 93 deletions tests/tt_metal/tools/profiler/test_device_logs.py

This file was deleted.

2 changes: 1 addition & 1 deletion tt_metal/third_party/lfs
Submodule lfs updated 68 files
+0 −18 profiler/tests/golden/device/logs/profile_log_device_add_two_ints.csv
+0 −10 profiler/tests/golden/device/logs/profile_log_device_circular_trace_order.csv
+0 −1,922 profiler/tests/golden/device/logs/profile_log_device_compute.csv
+0 −136 profiler/tests/golden/device/logs/profile_log_device_full_buffer_nc_b_risc.csv
+0 −82 profiler/tests/golden/device/logs/profile_log_device_full_buffer_nc_b_t0_t1_t2_risc.csv
+0 −74 profiler/tests/golden/device/logs/profile_log_device_full_buffer_nc_risc.csv
+0 −4,322 profiler/tests/golden/device/logs/profile_log_device_grayskull_new_header.csv
+0 −24,122 profiler/tests/golden/device/logs/profile_log_device_large.csv
+0 −1,202 profiler/tests/golden/device/logs/profile_log_device_matmul.csv
+0 −52 profiler/tests/golden/device/logs/profile_log_device_matmul_small.csv
+0 −10 profiler/tests/golden/device/logs/profile_log_device_missing_BRISC.csv
+0 −10 profiler/tests/golden/device/logs/profile_log_device_missing_NCRISC.csv
+0 −18 profiler/tests/golden/device/logs/profile_log_device_missing_all_defualt_markers.csv
+0 −34 profiler/tests/golden/device/logs/profile_log_device_multi_core_multi_launch.csv
+0 −26 profiler/tests/golden/device/logs/profile_log_device_very_long_launch_delta.csv
+0 −4,482 profiler/tests/golden/device/logs/profile_log_device_wormhole_multi_core.csv
+0 −22 profiler/tests/golden/device/logs/profile_log_device_wormhole_single_core.csv
+0 −840 profiler/tests/golden/device/outputs/test_add_two_ints/device_analysis_data.json
+0 −50 profiler/tests/golden/device/outputs/test_add_two_ints/device_stats.txt
+0 −18 profiler/tests/golden/device/outputs/test_add_two_ints/profile_log_device.csv
+0 −280 profiler/tests/golden/device/outputs/test_circular_trace_order/device_analysis_data.json
+0 −0 profiler/tests/golden/device/outputs/test_circular_trace_order/device_stats.txt
+0 −10 profiler/tests/golden/device/outputs/test_circular_trace_order/profile_log_device.csv
+0 −44,512 profiler/tests/golden/device/outputs/test_compute/device_analysis_data.json
+0 −60 profiler/tests/golden/device/outputs/test_compute/device_stats.txt
+0 −1,922 profiler/tests/golden/device/outputs/test_compute/profile_log_device.csv
+0 −1,023 profiler/tests/golden/device/outputs/test_full_buffer_nc_b_risc/device_analysis_data.json
+0 −8 profiler/tests/golden/device/outputs/test_full_buffer_nc_b_risc/device_stats.txt
+0 −136 profiler/tests/golden/device/outputs/test_full_buffer_nc_b_risc/profile_log_device.csv
+0 −919 profiler/tests/golden/device/outputs/test_full_buffer_nc_b_t0_t1_t2_risc/device_analysis_data.json
+0 −12 profiler/tests/golden/device/outputs/test_full_buffer_nc_b_t0_t1_t2_risc/device_stats.txt
+0 −82 profiler/tests/golden/device/outputs/test_full_buffer_nc_b_t0_t1_t2_risc/profile_log_device.csv
+0 −868 profiler/tests/golden/device/outputs/test_full_buffer_nc_risc/device_analysis_data.json
+0 −20 profiler/tests/golden/device/outputs/test_full_buffer_nc_risc/device_stats.txt
+0 −74 profiler/tests/golden/device/outputs/test_full_buffer_nc_risc/profile_log_device.csv
+0 −75,841 profiler/tests/golden/device/outputs/test_grayskull_new_header/device_analysis_data.json
+0 −60 profiler/tests/golden/device/outputs/test_grayskull_new_header/device_stats.txt
+0 −4,322 profiler/tests/golden/device/outputs/test_grayskull_new_header/profile_log_device.csv
+0 −151,349 profiler/tests/golden/device/outputs/test_large/device_analysis_data.json
+0 −60 profiler/tests/golden/device/outputs/test_large/device_stats.txt
+0 −24,122 profiler/tests/golden/device/outputs/test_large/profile_log_device.csv
+0 −36,940 profiler/tests/golden/device/outputs/test_matmul/device_analysis_data.json
+0 −60 profiler/tests/golden/device/outputs/test_matmul/device_stats.txt
+0 −1,202 profiler/tests/golden/device/outputs/test_matmul/profile_log_device.csv
+0 −1,865 profiler/tests/golden/device/outputs/test_matmul_small/device_analysis_data.json
+0 −60 profiler/tests/golden/device/outputs/test_matmul_small/device_stats.txt
+0 −52 profiler/tests/golden/device/outputs/test_matmul_small/profile_log_device.csv
+0 −307 profiler/tests/golden/device/outputs/test_missing_all_defualt_markers/device_analysis_data.json
+0 −0 profiler/tests/golden/device/outputs/test_missing_all_defualt_markers/device_stats.txt
+0 −18 profiler/tests/golden/device/outputs/test_missing_all_defualt_markers/profile_log_device.csv
+0 −263 profiler/tests/golden/device/outputs/test_missing_brisc/device_analysis_data.json
+0 −0 profiler/tests/golden/device/outputs/test_missing_brisc/device_stats.txt
+0 −10 profiler/tests/golden/device/outputs/test_missing_brisc/profile_log_device.csv
+0 −796 profiler/tests/golden/device/outputs/test_missing_ncrisc/device_analysis_data.json
+0 −50 profiler/tests/golden/device/outputs/test_missing_ncrisc/device_stats.txt
+0 −10 profiler/tests/golden/device/outputs/test_missing_ncrisc/profile_log_device.csv
+0 −1,393 profiler/tests/golden/device/outputs/test_multi_core_multi_launch/device_analysis_data.json
+0 −54 profiler/tests/golden/device/outputs/test_multi_core_multi_launch/device_stats.txt
+0 −34 profiler/tests/golden/device/outputs/test_multi_core_multi_launch/profile_log_device.csv
+0 −1,159 profiler/tests/golden/device/outputs/test_very_long_launch_delta/device_analysis_data.json
+0 −54 profiler/tests/golden/device/outputs/test_very_long_launch_delta/device_stats.txt
+0 −26 profiler/tests/golden/device/outputs/test_very_long_launch_delta/profile_log_device.csv
+0 −41,837 profiler/tests/golden/device/outputs/test_wormhole_multi_core/device_analysis_data.json
+0 −60 profiler/tests/golden/device/outputs/test_wormhole_multi_core/device_stats.txt
+0 −4,482 profiler/tests/golden/device/outputs/test_wormhole_multi_core/profile_log_device.csv
+0 −721 profiler/tests/golden/device/outputs/test_wormhole_single_core/device_analysis_data.json
+0 −20 profiler/tests/golden/device/outputs/test_wormhole_single_core/device_stats.txt
+0 −22 profiler/tests/golden/device/outputs/test_wormhole_single_core/profile_log_device.csv
4 changes: 3 additions & 1 deletion tt_metal/tools/profiler/process_device_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,9 @@ def get_duration(riscData, analysis):
desMarker = {"risc": risc, "zone_name": timerID["zone_name"]}
if desMarker == analysis["marker"]:
totalDuration += statData
return [dict(duration_type=analysis["marker"], duration_cycles=totalDuration)]
if totalDuration:
return [dict(duration_type=analysis["marker"], duration_cycles=totalDuration)]
return []


def adjacent_LF_analysis(riscData, analysis):
Expand Down

0 comments on commit 40db1aa

Please sign in to comment.