-
Notifications
You must be signed in to change notification settings - Fork 262
SWDEV-551979 Fixing kernel filtering gui analyze mode. #2210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8816394
3d1750e
2d2025f
902f824
51d53ae
76c5be2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -152,9 +152,10 @@ def generate_from_filter( | |||||
| console_debug("analysis", f"gui gpu filter is {gcd_filter}") | ||||||
| console_debug("analysis", f"gui top-n filter is {top_n_filt}") | ||||||
|
|
||||||
| base_data[base_run].filter_kernel_ids = ( | ||||||
| [str(k) for k in kernel_filter] if kernel_filter else [] | ||||||
| ) | ||||||
| base_data[base_run].filter_kernel_ids = (kernel_filter if kernel_filter else []) | ||||||
| console_warning('kernel_filter',kernel_filter) | ||||||
| console_warning('base_data[base_run].filter_kernel_ids',base_data[base_run].filter_kernel_ids) | ||||||
|
|
||||||
| base_data[base_run].filter_gpu_ids = ( | ||||||
| [int(g) for g in gcd_filter] if gcd_filter else [] | ||||||
| ) | ||||||
|
|
@@ -185,13 +186,15 @@ def generate_from_filter( | |||||
| for key in base_data[base_run].dfs | ||||||
| if key in basic_dfs_keep | ||||||
| } | ||||||
| base_data[base_run].dfs = filtered_dfs | ||||||
| # base_data[base_run].dfs = filtered_dfs | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comments of unused code in production code
|
||||||
| # base_data[base_run].dfs = filtered_dfs | |
| base_data[base_run].dfs = filtered_dfs |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -73,7 +73,7 @@ | |||||||||||||||||||||||||||||||||||||||||
| # } | ||||||||||||||||||||||||||||||||||||||||||
| SUPPORTED_DENOM: dict[str, str] = { | ||||||||||||||||||||||||||||||||||||||||||
| "per_wave": "SQ_WAVES", | ||||||||||||||||||||||||||||||||||||||||||
| "per_cycle": "$GRBM_GUI_ACTIVE_PER_XCD", | ||||||||||||||||||||||||||||||||||||||||||
| "per_cycle": "GRBM_GUI_ACTIVE_PER_XCD", | ||||||||||||||||||||||||||||||||||||||||||
| "per_second": "((End_Timestamp - Start_Timestamp) / 1000000000)", | ||||||||||||||||||||||||||||||||||||||||||
| "per_kernel": "1", | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -197,6 +197,8 @@ def to_int( | |||||||||||||||||||||||||||||||||||||||||
| if a is None: | ||||||||||||||||||||||||||||||||||||||||||
| return None | ||||||||||||||||||||||||||||||||||||||||||
| elif isinstance(a, (int, float, np.integer)): | ||||||||||||||||||||||||||||||||||||||||||
| if pd.isna(a): | ||||||||||||||||||||||||||||||||||||||||||
| return None | ||||||||||||||||||||||||||||||||||||||||||
| return int(a) | ||||||||||||||||||||||||||||||||||||||||||
| elif isinstance(a, pd.Series): | ||||||||||||||||||||||||||||||||||||||||||
| return a.astype(int) | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -317,14 +319,20 @@ def __init__( | |||||||||||||||||||||||||||||||||||||||||
| self.empirical_peaks = empirical_peaks | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| def eval_expression(self, expr: str) -> Union[str, float, int]: | ||||||||||||||||||||||||||||||||||||||||||
| """Evaluate a single expression with proper local context.""" | ||||||||||||||||||||||||||||||||||||||||||
| """Evaluate a single expression with proper local context.""" | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+322
to
+323
|
||||||||||||||||||||||||||||||||||||||||||
| """Evaluate a single expression with proper local context.""" | |
| """Evaluate a single expression with proper local context.""" |
Copilot
AI
Dec 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment appears to contain commented-out code.
| # console_warning("Local context keys:",local_expr_context) | |
| # console_warning(f"=== EVAL DEBUG for: {expr} ===") | |
| # if 'raw_pmc_df' in local_expr_context: | |
| # pmc_df = local_expr_context['raw_pmc_df'] | |
| # console_warning(f"raw_pmc_df type: {type(pmc_df)}") | |
| # grbm_col = pmc_df['pmc_perf']['GRBM_GUI_ACTIVE'] | |
| # console_warning(f"GRBM_GUI_ACTIVE type: {type(grbm_col)}") | |
| # console_warning(f"GRBM_GUI_ACTIVE shape: {getattr(grbm_col, 'shape', 'No shape')}") | |
| # console_warning(f"GRBM_GUI_ACTIVE values: {grbm_col}") | |
| # console_warning("GRBM_GUI_ACTIVE index:",grbm_col.index) | |
| # else: | |
| # console_error("raw_pmc_df not found in local_expr_context.") | |
| # # Print num_xcd | |
| # num_xcd = local_expr_context.get('ammolite__num_xcd') | |
| # console_warning(f"ammolite__num_xcd type: {type(num_xcd)}") | |
| # console_warning(f"ammolite__num_xcd value: {num_xcd}") | |
Copilot
AI
Dec 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug console_warning statements should be removed before merging. These appear to be temporary debugging code left in the codebase.
| if 'denom' in expr: | |
| console_warning(f"Evaluated expression '{expr}' with result: {eval_result}") | |
Copilot
AI
Dec 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in error message: 'Skiped' should be 'Skipped'.
| "Skiped updating $denom." | |
| "Skipped updating $denom." |
Copilot
AI
Dec 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug console_error statement should be removed before merging. This appears to be temporary debugging code that logs every equation update with denom.
| if 'denom' in equation_string: | |
| console_error(f"Updated equation with denom:{equation} --> {equation_string}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug console_warning statements should be removed before merging. These appear to be temporary debugging code left to track kernel filter values.