fix(ci): Add -fno-gpu-sanitize flag to HOST_ASAN builds - #7164
Draft
estewart08 wants to merge 1 commit into
Draft
Conversation
estewart08
marked this pull request as ready for review
August 6, 2026 21:08
❌ PR Check — Action Required
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🚫 Please fix the failed policies before requesting reviews. The following policy checks failed:
The |
estewart08
force-pushed
the
users/estewart/host-asan-fno-gpu-sanitize
branch
2 times, most recently
from
August 10, 2026 22:59
5048fe9 to
ccd89ad
Compare
estewart08
marked this pull request as draft
August 11, 2026 14:24
Contributor
Author
|
There is an issue with -fno-gpu-sanitize where the Driver is dropping include entries (-I) looking at another fix/workaround. |
Recently HOST_ASAN is default for Multi-Arch CI to improve efficiency: (#7110) There is an issue with HOST_ASAN Multi-Arch CI. MIOpen uses -Werror and during HOST_ASAN this reports a warning that -fsanitize=address is not supported unless xnack+ is appended to the gfx target. Regular ASAN builds override the gfx942 target with gfx942:xnack+ and do not see this issue. -fno-gpu-sanitize is used to explicitly disable sanitizer checks for GPU device target compilations, but allows host sanitization to remain. This option currently removes driver arguments, which I believe to be a bug. Instead -Xarch_host is used to separate host only sanitizer flags.
estewart08
force-pushed
the
users/estewart/host-asan-fno-gpu-sanitize
branch
from
August 11, 2026 17:33
ccd89ad to
196e441
Compare
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.
Recently HOST_ASAN is default for Multi-Arch CI to improve efficiency: (#7110)
There is an issue with HOST_ASAN Multi-Arch CI. MIOpen uses -Werror and during HOST_ASAN this reports a warning that -fsanitize=address is not supported unless xnack+ is appended to the gfx target. Regular ASAN builds override the gfx942 target with gfx942:xnack+ and do not see this issue.
-fno-gpu-sanitize is used to explicitly disable sanitizer checks for GPU device target compilations, but allows host sanitization to remain.
Motivation
Unblock sanitizer build.