Repository navigation
Commit acaae88
committed
feat(compat.sycl-runtime): the OpenCL adapter the payload ships is served
The package declared it did not serve `libOpenCL.so.1`, and that decision was
made from a real measurement and was still wrong.
WHAT THE MEASUREMENT SAID. Declaring `compat:opencl` made the farm test pass
with every member loading -- and pass with `libnvidia-ml.so.1` REMOVED from the
farm. `compat:opencl` depends on `compat:opencl-runtime`, whose farm mirrors the
host's NVIDIA OpenCL family and therefore carries NVML, so the new dependency
was satisfying the need the rest of this change exists to satisfy, and the
criterion could no longer fail.
WHY THAT REASON EXPIRED. The masking was a property of a criterion that measured
the PROCESS. `tests/farm.cpp` was rewritten -- because of that very measurement
-- to read each member's DT_NEEDED against the farm alone. Once nothing on the
search path can answer for the farm, the only objection left was the size of the
surface, and a back end whose adapter the payload ships is not something a
runtime adapter should leave permanently unreachable.
Measured with the edge declared: the farm test passes, and with NVML removed it
still fails naming `libur_adapter_cuda.so.0`. The decision is reversible because
the criterion is no longer maskable.
`libOpenCL.so.1` stays named in the test with its meaning changed: not "this
package does not serve it" but "a declared dependency of this package provides
it". mcpp deploys `compat:opencl`'s shared library beside the consumer's
executable and `$ORIGIN` finds it there. Everything not on that short list must
be in the farm, which is what keeps the self-sufficiency assertion exact without
reopening the process to answer for it.1 parent af00391 commit acaae88
2 files changed
Lines changed: 46 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 131 | + | |
134 | 132 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
148 | 146 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
258 | 266 | | |
259 | 267 | | |
260 | 268 | | |
261 | | - | |
262 | | - | |
263 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
264 | 273 | | |
265 | 274 | | |
266 | 275 | | |
| |||
0 commit comments