-
Notifications
You must be signed in to change notification settings - Fork 11
Fixing error/warnings in XDP plugins 2026.1 #46
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 2 commits
3b0f403
43b2b59
2ca9408
6369e12
c4558d4
ba62382
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 |
|---|---|---|
|
|
@@ -921,7 +921,7 @@ namespace xdp { | |
| } | ||
| catch (...) { | ||
| std::stringstream msg; | ||
| msg << "Channel specifications in graph_based_interface_metrics " | ||
| msg << "Channel specifications in graph_based_interface_tile_metrics " | ||
| << "are not valid and hence ignored."; | ||
| xrt_core::message::send(severity_level::warning, "XRT", msg.str()); | ||
| } | ||
|
|
@@ -1083,6 +1083,9 @@ namespace xdp { | |
| } | ||
| catch (std::invalid_argument const&) { | ||
| // maxColumn is not an integer i.e either 1st style or wrong format, skip for now | ||
| xrt_core::message::send(severity_level::warning, "XRT", | ||
| "tile_based_interface_tile_metrics: invalid range line. Ignored: " | ||
| + metricsSettings[i]); | ||
| continue; | ||
| } | ||
|
|
||
|
|
@@ -1149,6 +1152,10 @@ namespace xdp { | |
|
|
||
| try { | ||
| col = aie::convertStringToUint8(metrics[i][1]); | ||
| xrt_core::message::send(severity_level::warning, "XRT", | ||
| "tile_based_interface_tile_metrics: invalid format. Ignored: " | ||
| + metricsSettings[i]); | ||
| continue; | ||
|
Comment on lines
1168
to
+1173
|
||
| } | ||
| catch (std::invalid_argument const&) { | ||
| // max column is not a number, so the expected single column specification. Handle this here | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -417,7 +417,7 @@ namespace xdp { | |||||||||||||
| && (std::find(allValidEntries.begin(), allValidEntries.end(), graphMetrics[i][1]) == allValidEntries.end())) { | ||||||||||||||
| std::stringstream msg; | ||||||||||||||
| msg << "Could not find " << entryType << " " << graphMetrics[i][1] | ||||||||||||||
| << " as specified in graph_based_" << tileName << "_metrics setting." | ||||||||||||||
| << " as specified in graph_based_" << tileName << "_tile_metrics setting." | ||||||||||||||
| << " The following " << entryType << "s are valid : "; | ||||||||||||||
| if (!allValidEntries.empty()) { | ||||||||||||||
| msg << allValidEntries[0]; | ||||||||||||||
|
|
@@ -460,7 +460,7 @@ namespace xdp { | |||||||||||||
| && (std::find(allValidEntries.begin(), allValidEntries.end(), graphMetrics[i][1]) == allValidEntries.end())) { | ||||||||||||||
| std::stringstream msg; | ||||||||||||||
| msg << "Could not find " << entryType << " " << graphMetrics[i][1] | ||||||||||||||
| << " as specified in graph_based_" << tileName << "_metrics setting." | ||||||||||||||
| << " as specified in graph_based_" << tileName << "_tile_metrics setting." | ||||||||||||||
| << " The following " << entryType << "s are valid : "; | ||||||||||||||
| if (!allValidEntries.empty()) { | ||||||||||||||
| msg << allValidEntries[0]; | ||||||||||||||
|
|
@@ -788,7 +788,7 @@ namespace xdp { | |||||||||||||
| } | ||||||||||||||
| } catch (...) { | ||||||||||||||
| std::stringstream msg; | ||||||||||||||
| msg << "Channel specifications in graph_based_interface_metrics " | ||||||||||||||
| msg << "Channel specifications in graph_based_interface_tile_metrics " | ||||||||||||||
| << "are not valid and hence ignored."; | ||||||||||||||
| xrt_core::message::send(severity_level::warning, "XRT", msg.str()); | ||||||||||||||
| } | ||||||||||||||
|
|
@@ -894,6 +894,9 @@ namespace xdp { | |||||||||||||
| } | ||||||||||||||
| catch (std::invalid_argument const&) { | ||||||||||||||
| // Max column is not an integer, so either first style or wrong format. Skip for now. | ||||||||||||||
| xrt_core::message::send(severity_level::warning, "XRT", | ||||||||||||||
| "tile_based_interface_tile_metrics: invalid range line. Ignored: " | ||||||||||||||
| + metricsSettings[i]); | ||||||||||||||
|
||||||||||||||
| // Max column is not an integer, so either first style or wrong format. Skip for now. | |
| xrt_core::message::send(severity_level::warning, "XRT", | |
| "tile_based_interface_tile_metrics: invalid range line. Ignored: " | |
| + metricsSettings[i]); | |
| // Max column is not an integer, so this may be another supported style. | |
| // Skip this pass and allow later passes to process it. |
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.
Pass 2’s new "invalid range line" warning is also hit for valid single-column settings that include channels (e.g.
<col>:<metric>:<channel>), becausemetrics[i][1]is the metric name andconvertStringToUint8(metrics[i][1])throws. Pass 3 then handles the entry successfully, so this warning becomes a false positive. Consider keeping this branch silent (skip and let Pass 3 parse), or disambiguating before warning (e.g., only warn if the entry can’t match any supported form after all passes).