From 8965835933ed6e0f05eb07b2b9097341e26cfec7 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 14 Oct 2022 16:08:48 +0200 Subject: [PATCH 1/3] write_timer_report to stdout --- integration_tests/spynnaker.cfg | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 integration_tests/spynnaker.cfg diff --git a/integration_tests/spynnaker.cfg b/integration_tests/spynnaker.cfg new file mode 100644 index 0000000..aa27a36 --- /dev/null +++ b/integration_tests/spynnaker.cfg @@ -0,0 +1,7 @@ +[Reports] +write_timer_report = True +timer_report_to_stdout = True +# ratio of single Algorithm to total time to report algorithm +timer_report_ratio = 0.00 +# min time to report algorithm even if less than ratio +timer_report_ms = 0 \ No newline at end of file From fd5fe3339dbf0851a40ecb0354e87ba091ee981e Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Mon, 17 Oct 2022 11:56:28 +0100 Subject: [PATCH 2/3] copy timer report to reports --- integration_tests/spynnaker.cfg | 2 +- integration_tests/test_microcircuit.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/integration_tests/spynnaker.cfg b/integration_tests/spynnaker.cfg index aa27a36..785dda6 100644 --- a/integration_tests/spynnaker.cfg +++ b/integration_tests/spynnaker.cfg @@ -1,6 +1,6 @@ [Reports] write_timer_report = True -timer_report_to_stdout = True +timer_report_to_stdout = False # ratio of single Algorithm to total time to report algorithm timer_report_ratio = 0.00 # min time to report algorithm even if less than ratio diff --git a/integration_tests/test_microcircuit.py b/integration_tests/test_microcircuit.py index 7ce65b0..f25c22c 100644 --- a/integration_tests/test_microcircuit.py +++ b/integration_tests/test_microcircuit.py @@ -16,6 +16,8 @@ from spinnaker_testbase import ScriptChecker import os import stat +from spinn_front_end_common.utilities.report_functions.timer_report import ( + timer_report_file) class TestMicrocircuit(ScriptChecker): @@ -34,3 +36,8 @@ def microcircuit(self): result_path = os.path.join("results", result_file) assert os.path.exists(result_path) assert os.stat(result_path)[stat.ST_SIZE] + + report = timer_report_file() + with open(report) as f: + message = f.read() + self.report(message, "microcircuit_timer.rpt") From 4d91f8f1aa50078e46b22cc9d1276f709e342a0d Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Tue, 18 Oct 2022 06:58:38 +0100 Subject: [PATCH 3/3] timer_report cfg settings --- integration_tests/spynnaker.cfg | 7 ------- spynnaker.cfg | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 integration_tests/spynnaker.cfg diff --git a/integration_tests/spynnaker.cfg b/integration_tests/spynnaker.cfg deleted file mode 100644 index 785dda6..0000000 --- a/integration_tests/spynnaker.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[Reports] -write_timer_report = True -timer_report_to_stdout = False -# ratio of single Algorithm to total time to report algorithm -timer_report_ratio = 0.00 -# min time to report algorithm even if less than ratio -timer_report_ms = 0 \ No newline at end of file diff --git a/spynnaker.cfg b/spynnaker.cfg index c65b914..8fdbf42 100644 --- a/spynnaker.cfg +++ b/spynnaker.cfg @@ -10,3 +10,11 @@ incoming_spike_buffer_size = 1024 [Mode] violate_1ms_wall_clock_restriction = True + +[Reports] +write_timer_report = True +timer_report_to_stdout = False +# ratio of single Algorithm to total time to report algorithm +timer_report_ratio = 0.00 +# min time to report algorithm even if less than ratio +timer_report_ms = 0