From 7f681fd19a96432bc302f9416c0fef935bb099db Mon Sep 17 00:00:00 2001 From: Jon Clucas Date: Thu, 4 Mar 2021 09:43:47 -0500 Subject: [PATCH] =?UTF-8?q?:mute:=20Comment=20out=20runtime=5Fthreads=20?= =?UTF-8?q?=E2=A9=BC=20=20threads?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CPAC/utils/monitoring/draw_gantt_chart.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CPAC/utils/monitoring/draw_gantt_chart.py b/CPAC/utils/monitoring/draw_gantt_chart.py index c46cd55b8e..098b765c87 100644 --- a/CPAC/utils/monitoring/draw_gantt_chart.py +++ b/CPAC/utils/monitoring/draw_gantt_chart.py @@ -499,7 +499,7 @@ def resource_overusage_report(cblog): > node.get('num_threads', 1) else None ] for node in [node for node in cb_dict_list if ( node.get('runtime_memory_gb', 0) > node.get('estimated_memory_gb', 1) - or node.get('runtime_threads', 0) - 1 > node.get('num_threads', 1) + # or node.get('runtime_threads', 0) - 1 > node.get('num_threads', 1) )]} text_report = '' if excessive: @@ -514,10 +514,12 @@ def resource_overusage_report(cblog): ' runtime > estimated\n' \ f' {excessive[node][0]} ' \ f'> {excessive[node][1]}\n' - if excessive[node][2]: - text_report += ' **threads**\n runtime > limit\n' \ - f' {excessive[node][2]} ' \ - f'> {excessive[node][3]}\n' + # JC: I'm not convinced 'runtime_threads' and 'threads' are + # comparable in nipype ~1.5.1 + # if excessive[node][2]: + # text_report += ' **threads**\n runtime > limit\n' \ + # f' {excessive[node][2]} ' \ + # f'> {excessive[node][3]}\n' text_report += dotted_line return text_report, excessive