Skip to content

Fix erroneous MPI_Bcast sizing in autotune.cc and remove O1 optimization cap.#153

Merged
romerojosh merged 2 commits into
mainfrom
remove-o1-cap
Jul 15, 2026
Merged

Fix erroneous MPI_Bcast sizing in autotune.cc and remove O1 optimization cap.#153
romerojosh merged 2 commits into
mainfrom
remove-o1-cap

Conversation

@romerojosh

@romerojosh romerojosh commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

This PR removes a legacy -O1 optimization cap applied to host code compilation. This limitation was driven by historic issues with autotune.cc segfaulting at higher optimizations levels. Codex determined it was due to erroneous counts used in an MPI_Bcast operation in this file, causing an out-of-bounds stack write. At -O1, the stack arrangement made this benign which is why that workaround always worked. This PR finally fixes the issue and enables higher optimization.

Signed-off-by: romerojosh <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
@romerojosh romerojosh changed the title Remove forced O1 optimization cap for host code compilation. Fix erroneous MPI_Bcast sizing in autotune.cc and remove O1 optimization cap. Jul 15, 2026
@romerojosh

Copy link
Copy Markdown
Collaborator Author

/build

@github-actions

Copy link
Copy Markdown

🚀 Build workflow triggered! View run

@github-actions

Copy link
Copy Markdown

✅ Build workflow passed! View run

@romerojosh romerojosh merged commit aab3f5a into main Jul 15, 2026
4 checks passed
@romerojosh romerojosh deleted the remove-o1-cap branch July 15, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant