Repository navigation
[STF] Temporarility disable the algorithm construct - #4403
Merged
Merged
Conversation
Contributor
Contributor
Author
|
/ok to test |
Contributor
🟩 CI finished in 2h 01m: Pass: 100%/24 | Total: 4h 22m | Avg: 10m 55s | Max: 19m 56s | Hits: 84%/13460
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 24)
| # | Runner |
|---|---|
| 15 | linux-amd64-cpu16 |
| 4 | linux-arm64-cpu16 |
| 2 | windows-amd64-cpu16 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
| 1 | linux-amd64-gpu-h100-latest-1 |
Contributor
|
/ok to test |
alliepiper
approved these changes
Apr 10, 2025
Contributor
Author
|
/ok to test |
Contributor
Author
|
/ok to test |
Contributor
🟨 CI finished in 21m 59s: Pass: 8%/24 | Total: 1h 50m | Avg: 4m 36s | Max: 15m 39s | Hits: 65%/568
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 24)
| # | Runner |
|---|---|
| 15 | linux-amd64-cpu16 |
| 4 | linux-arm64-cpu16 |
| 2 | windows-amd64-cpu16 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
| 1 | linux-amd64-gpu-h100-latest-1 |
Contributor
Author
|
/ok to test |
Contributor
🟩 CI finished in 1h 23m: Pass: 100%/24 | Total: 6h 44m | Avg: 16m 52s | Max: 30m 43s | Hits: 42%/13372
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 24)
| # | Runner |
|---|---|
| 15 | linux-amd64-cpu16 |
| 4 | linux-arm64-cpu16 |
| 2 | windows-amd64-cpu16 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
| 1 | linux-amd64-gpu-h100-latest-1 |
alliepiper
enabled auto-merge (squash)
April 10, 2025 21:12
pciolkosz
approved these changes
Apr 10, 2025
davebayer
pushed a commit
to davebayer/cccl
that referenced
this pull request
Apr 11, 2025
* Temporarility disable the algorithm construct * disable tests with algorithms
This was referenced Aug 14, 2026
Closed
andralex
added a commit
that referenced
this pull request
Aug 14, 2026
…10824) The four tests and examples that run parallel_for on exec_place::host() fail to compile with clang-cuda, which cannot classify lambdas for host/device execution and therefore compiles the host lambda into the device kernel, where it explodes several levels deep. Formalize the limitation instead of letting the instantiation explain it. Each site is now guarded for nvcc/nvc++, and the other branch holds a call that is declared but never defined, carrying the GNU 'error' attribute. That diagnostic fires only at codegen, which yields exactly the desired split: clang-tidy and -fsyntax-only sweeps (the consumers this series is for) analyze the file cleanly, while an attempt to actually build states the limitation in one line at compile time -- and at link time, with the function name as the message, on compilers without the attribute. Nothing anywhere compiles into wrong runtime behavior. The noexcept on the poison declaration is load-bearing and was a bug once: with a nontrivial destructor in scope, the call is otherwise emitted as an invoke, whose error-attribute diagnostic clang silently skips (observed with clang 21, plain C++ and CUDA alike). tiled_loops.cu also runs parallel_for on the host but needs no guard: its unannotated lambda is implicitly host-device under clang and its body is device-legal, so it compiles and dispatches dynamically -- supported semantics on every compiler. With this, the clang-cuda sweep over all 283 STF tests and examples fails only on the six disabled 'algorithm' TUs (#4403) and the five deliberately-failing static_error_checks. Verified: -fsyntax-only clean and real clang build poisoned with the message on all four TUs; clang-tidy 21 (bugprone-exception-escape, --cuda-host-only) analyzes cleanly; nvcc 13.2 compiles and the tests run green on an RTX 3070 (sm_86), byte-identical behavior. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.
Description
The (badly named) algorithm construct needs to be fixed, until it is, we disable it
closes
Checklist