Repository navigation
Commit 8cc0b98
GPUCommonAlgorithm: partitionPoint
Device code has no std::partition_point, and kernels write the binary
search by hand (e.g. the last ROF at or before a cluster in
ITS/tracking/GPU/cuda/TrackingKernels.cu). Add
GPUCommonAlgorithm::partitionPoint(first, count, pred), std::partition_point
over the indices [first, first + count), callable from host and device
code; lower and upper bounds are its predicates key(i) < value and
!(value < key(i)).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>1 parent 670d1f7 commit 8cc0b98
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
333 | 353 | | |
334 | 354 | | |
335 | 355 | | |
| |||
0 commit comments