You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update some gdb.rocm tests to support optimized code
Adapt several gdb.rocm tests so they pass under -O1/-O2/-O3:
- Apply __attribute__((optnone)) to device functions whose
locals or call structure the tests rely on, and to host
main() where its store-then-exit pattern would otherwise
be tail-optimised.
- Make breakpoint-anchor helper functions ("done", "foo",
"bar") non-static and noinline, with an asm volatile body,
so the symbol survives the optimiser and the breakpoint
can be inserted.
- Mark local variables volatile where the test reads them
via convenience variables or takes their address.
- Restore "__global__ void" qualifier on device-attach
kernel, and mark its spin-loop guard volatile so the loop
survives optimisation.
- Relax regex/line-number expectations under optimisation
in deep-stack, hip-builtin-variables, snapshot-objfile-on-
load, and step-schedlock-spurious-waves.
- Brace expr-substitutions in deep-stack and until-tests
(tclint hygiene).
Co-Authored-By: Luis Machado <luis.machado@amd.com>
Change-Id: I750d64e842413429e281bb8f7d85c4f46319a627
Signed-off-by: Sarang Patrange <spatrang@amd.com>
0 commit comments