Repository navigation
[AIPROFVIS-493] Zero-initialize trace parameters so load decisions don't read garbage - #1227
Open
dhingora-amd wants to merge 1 commit into
Open
dhingora-amd wants to merge 1 commit into
dhingora-amd wants to merge 1 commit into
Conversation
dhingora-amd
requested review from
drchen-amd,
tomk-amd and
vstempen
as code owners
November 27, 2026 17:08
dhingora-amd
temporarily deployed
to
legacy-nightly
November 27, 2026 17:08 — with
GitHub Actions
Inactive
Security scan found no critical or high findings on lines changed by this pull requestView the security scan run for complete reports. “New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The
Traceconstructor set onlytrace_durationandmetadata_loaded, leaving the other numeric fields ofrocprofvis_dm_trace_params_tuninitialized (events_count[],histogram_bucket_size/count,num_db_instances,tracks_info_restored). RPD and Perfetto reset only the Launch and Dispatch counters, soCalculateParallelProcessSplitCountsummed indeterminate values for the other operations. That is undefined behaviour, and the split count for large tracks could vary between runs.Technical Details
rocprofvis_dm_trace_params_t(events_countis{}), and removed the now-redundant assignments inTrace::Trace().QueryManager::IsEmptyRangedivides byhistogram_bucket_size, which is now 0 rather than garbage before the histogram is built. It now returns "not empty" in that case, so the query runs instead of dividing by zero.linux-release, then openedtrace_70b_1024_32.rpdandrocpd-transpose.db. Tracks render and tables fill as before.