Commit a00cfb3
committed
gdb, testsuite: improve gdb.rocm cooperative group GWS tests
Refine the cooperative-group GWS tests for robustness and to make the
debugger behaviour under test more explicit:
* coop-group-grid-sync.exp: use temporary breakpoints for the
in-kernel locations (still pending, since the device code is
loaded at dispatch time) and drop the redundant delete_breakpoints
calls.
* coop-group-grid-sync.exp: report UNSUPPORTED instead of FAIL when
the inferior self-skips because no device advertises
cooperativeLaunch.
* coop-group-grid-sync.exp: have test_threads_in_coop_kernel check
distinct per-wave blockIdx.x (per-wave register context) and
per-lane threadIdx.x divergence (per-lane SIMT state), instead of
only confirming that the backtrace names the kernel.
* coop-group-multi-grid-sync.{cpp,exp}: read n_gpus from a marker
line that is reached on every execution (no early return before
it), so that when fewer than two cooperative-capable GPUs are
available -- including when a parallel test run restricts the
visible GPUs -- the test reports UNSUPPORTED rather than FAILing.
* coop-group-{grid,multi-grid}-sync.{cpp,exp}: minor comment and
GNU-style cleanups -- tab-align the in-kernel marker comment, keep
hipLaunchCooperativeKernelMultiDevice on a single line, and
clarify the Phase 2 data-dependency comment.
* coop-group-{grid,multi-grid}-sync.{cpp,exp}: give the per-wave and
per-lane value reads explicit, unique test names, and keep the
"n-gpus-final" marker string unique so gdb_get_line_number
resolves the intended line.
Tested on gfx942 with an in-tree build and the 7.14 nightly rocgdb,
both with all GPUs visible and with the visible set restricted to one.1 parent 714c354 commit a00cfb3
4 files changed
Lines changed: 90 additions & 72 deletions
File tree
- gdb/testsuite/gdb.rocm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
62 | 74 | | |
63 | 75 | | |
64 | 76 | | |
| |||
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
98 | 108 | | |
99 | | - | |
| 109 | + | |
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
103 | 113 | | |
104 | | - | |
105 | 114 | | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
114 | 124 | | |
115 | 125 | | |
116 | 126 | | |
| |||
121 | 131 | | |
122 | 132 | | |
123 | 133 | | |
124 | | - | |
125 | | - | |
126 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
127 | 150 | | |
128 | 151 | | |
129 | 152 | | |
130 | | - | |
131 | | - | |
132 | 153 | | |
133 | 154 | | |
134 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
135 | 160 | | |
136 | 161 | | |
137 | 162 | | |
138 | 163 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
142 | 168 | | |
143 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
144 | 182 | | |
145 | 183 | | |
146 | | - | |
147 | 184 | | |
148 | 185 | | |
149 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 100 | | |
107 | 101 | | |
108 | 102 | | |
109 | 103 | | |
110 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
| |||
120 | 117 | | |
121 | 118 | | |
122 | 119 | | |
123 | | - | |
| 120 | + | |
124 | 121 | | |
125 | | - | |
| 122 | + | |
126 | 123 | | |
127 | | - | |
| 124 | + | |
128 | 125 | | |
129 | 126 | | |
130 | 127 | | |
131 | | - | |
132 | 128 | | |
133 | 129 | | |
134 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
90 | 75 | | |
91 | 76 | | |
92 | | - | |
93 | 77 | | |
| 78 | + | |
94 | 79 | | |
95 | 80 | | |
96 | 81 | | |
| |||
107 | 92 | | |
108 | 93 | | |
109 | 94 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
116 | 100 | | |
117 | 101 | | |
118 | 102 | | |
| |||
0 commit comments