Skip to content

[STF] Temporarility disable the algorithm construct - #4403

Merged
alliepiper merged 8 commits into
NVIDIA:mainfrom
caugonnet:stf_tmp_disable_algorithm
Apr 10, 2025
Merged

alliepiper merged 8 commits into
NVIDIA:mainfrom
caugonnet:stf_tmp_disable_algorithm

Conversation

@caugonnet

Copy link
Copy Markdown
Contributor

Description

The (badly named) algorithm construct needs to be fixed, until it is, we disable it

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Apr 10, 2025

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@caugonnet caugonnet self-assigned this Apr 10, 2025
@caugonnet caugonnet added the stf Sequential Task Flow programming model label Apr 10, 2025
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Apr 10, 2025
@caugonnet

Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

Copy link
Copy Markdown
Contributor
🟩 CI finished in 2h 01m: Pass: 100%/24 | Total: 4h 22m | Avg: 10m 55s | Max: 19m 56s | Hits: 84%/13460
  • 🟩 cudax: Pass: 100%/24 | Total: 4h 22m | Avg: 10m 55s | Max: 19m 56s | Hits: 84%/13460

    🟩 cpu
      🟩 amd64              Pass: 100%/20  | Total:  3h 48m | Avg: 11m 24s | Max: 19m 56s | Hits:  85%/11116 
      🟩 arm64              Pass: 100%/4   | Total: 34m 01s | Avg:  8m 30s | Max:  9m 04s | Hits:  82%/2344  
    🟩 ctk
      🟩 12.0               Pass: 100%/1   | Total: 12m 26s | Avg: 12m 26s | Max: 12m 26s | Hits:  95%/284   
      🟩 12.8               Pass: 100%/23  | Total:  4h 09m | Avg: 10m 51s | Max: 19m 56s | Hits:  84%/13176 
    🟩 cudacxx
      🟩 nvcc12.0           Pass: 100%/1   | Total: 12m 26s | Avg: 12m 26s | Max: 12m 26s | Hits:  95%/284   
      🟩 nvcc12.8           Pass: 100%/23  | Total:  4h 09m | Avg: 10m 51s | Max: 19m 56s | Hits:  84%/13176 
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/24  | Total:  4h 22m | Avg: 10m 55s | Max: 19m 56s | Hits:  84%/13460 
    🟩 cxx
      🟩 Clang14            Pass: 100%/1   | Total:  9m 10s | Avg:  9m 10s | Max:  9m 10s | Hits:  82%/588   
      🟩 Clang15            Pass: 100%/1   | Total:  9m 27s | Avg:  9m 27s | Max:  9m 27s | Hits:  82%/586   
      🟩 Clang16            Pass: 100%/1   | Total:  9m 41s | Avg:  9m 41s | Max:  9m 41s | Hits:  82%/586   
      🟩 Clang17            Pass: 100%/1   | Total:  9m 28s | Avg:  9m 28s | Max:  9m 28s | Hits:  82%/586   
      🟩 Clang18            Pass: 100%/1   | Total:  9m 17s | Avg:  9m 17s | Max:  9m 17s | Hits:  82%/586   
      🟩 Clang19            Pass: 100%/4   | Total: 39m 48s | Avg:  9m 57s | Max: 12m 49s | Hits:  86%/2344  
      🟩 GCC10              Pass: 100%/1   | Total:  9m 22s | Avg:  9m 22s | Max:  9m 22s | Hits:  81%/588   
      🟩 GCC11              Pass: 100%/1   | Total: 10m 26s | Avg: 10m 26s | Max: 10m 26s | Hits:  81%/586   
      🟩 GCC12              Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s | Hits:  81%/586   
      🟩 GCC13              Pass: 100%/8   | Total:  1h 20m | Avg: 10m 01s | Max: 14m 50s | Hits:  86%/4688  
      🟩 MSVC14.39          Pass: 100%/1   | Total: 12m 26s | Avg: 12m 26s | Max: 12m 26s | Hits:  95%/284   
      🟩 MSVC14.42          Pass: 100%/1   | Total: 12m 46s | Avg: 12m 46s | Max: 12m 46s | Hits:  95%/284   
      🟩 NVHPC25.3          Pass: 100%/2   | Total: 38m 22s | Avg: 19m 11s | Max: 19m 56s | Hits:  79%/1168  
    🟩 cxx_family
      🟩 Clang              Pass: 100%/9   | Total:  1h 26m | Avg:  9m 39s | Max: 12m 49s | Hits:  84%/5276  
      🟩 GCC                Pass: 100%/11  | Total:  1h 51m | Avg: 10m 08s | Max: 14m 50s | Hits:  85%/6448  
      🟩 MSVC               Pass: 100%/2   | Total: 25m 12s | Avg: 12m 36s | Max: 12m 46s | Hits:  95%/568   
      🟩 NVHPC              Pass: 100%/2   | Total: 38m 22s | Avg: 19m 11s | Max: 19m 56s | Hits:  79%/1168  
    🟩 gpu
      🟩 h100               Pass: 100%/2   | Total: 22m 35s | Avg: 11m 17s | Max: 14m 50s | Hits:  90%/1172  
      🟩 rtx2080            Pass: 100%/22  | Total:  3h 59m | Avg: 10m 53s | Max: 19m 56s | Hits:  84%/12288 
    🟩 jobs
      🟩 Build              Pass: 100%/21  | Total:  3h 40m | Avg: 10m 31s | Max: 19m 56s | Hits:  82%/11702 
      🟩 Test               Pass: 100%/3   | Total: 41m 09s | Avg: 13m 43s | Max: 14m 50s | Hits:  99%/1758  
    🟩 sm
      🟩 90                 Pass: 100%/3   | Total: 29m 30s | Avg:  9m 50s | Max: 14m 50s | Hits:  87%/1758  
      🟩 90a                Pass: 100%/1   | Total:  8m 18s | Avg:  8m 18s | Max:  8m 18s | Hits:  81%/586   
    🟩 std
      🟩 17                 Pass: 100%/4   | Total: 41m 49s | Avg: 10m 27s | Max: 18m 26s | Hits:  81%/2342  
      🟩 20                 Pass: 100%/20  | Total:  3h 40m | Avg: 11m 00s | Max: 19m 56s | Hits:  85%/11118 
    

👃 Inspect Changes

Modifications in project?

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

@caugonnet
caugonnet marked this pull request as ready for review April 10, 2025 17:47
@caugonnet
caugonnet requested review from a team as code owners April 10, 2025 17:47
@caugonnet
caugonnet requested review from pciolkosz and wmaxey April 10, 2025 17:47
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Apr 10, 2025
@alliepiper

Copy link
Copy Markdown
Contributor

/ok to test

@caugonnet

Copy link
Copy Markdown
Contributor Author

/ok to test

@caugonnet

Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

Copy link
Copy Markdown
Contributor
🟨 CI finished in 21m 59s: Pass: 8%/24 | Total: 1h 50m | Avg: 4m 36s | Max: 15m 39s | Hits: 65%/568
  • 🟨 cudax: Pass: 8%/24 | Total: 1h 50m | Avg: 4m 36s | Max: 15m 39s | Hits: 65%/568

    🔍 ctk: 12.8 🔍
      🟩 12.0               Pass: 100%/1   | Total: 15m 33s | Avg: 15m 33s | Max: 15m 33s | Hits:  65%/284   
      🔍 12.8               Pass:   4%/23  | Total:  1h 35m | Avg:  4m 08s | Max: 15m 39s | Hits:  65%/284   
    🔍 cudacxx: nvcc12.8 🔍
      🟩 nvcc12.0           Pass: 100%/1   | Total: 15m 33s | Avg: 15m 33s | Max: 15m 33s | Hits:  65%/284   
      🔍 nvcc12.8           Pass:   4%/23  | Total:  1h 35m | Avg:  4m 08s | Max: 15m 39s | Hits:  65%/284   
    🟨 cxx
      🟥 Clang14            Pass:   0%/1   | Total:  3m 34s | Avg:  3m 34s | Max:  3m 34s
      🟥 Clang15            Pass:   0%/1   | Total:  3m 49s | Avg:  3m 49s | Max:  3m 49s
      🟥 Clang16            Pass:   0%/1   | Total:  3m 34s | Avg:  3m 34s | Max:  3m 34s
      🟥 Clang17            Pass:   0%/1   | Total:  3m 34s | Avg:  3m 34s | Max:  3m 34s
      🟥 Clang18            Pass:   0%/1   | Total:  3m 30s | Avg:  3m 30s | Max:  3m 30s
      🟥 Clang19            Pass:   0%/4   | Total: 10m 05s | Avg:  2m 31s | Max:  3m 36s
      🟥 GCC10              Pass:   0%/1   | Total:  3m 21s | Avg:  3m 21s | Max:  3m 21s
      🟥 GCC11              Pass:   0%/1   | Total:  3m 22s | Avg:  3m 22s | Max:  3m 22s
      🟥 GCC12              Pass:   0%/1   | Total:  3m 48s | Avg:  3m 48s | Max:  3m 48s
      🟥 GCC13              Pass:   0%/8   | Total: 20m 07s | Avg:  2m 30s | Max:  3m 40s
      🟩 MSVC14.39          Pass: 100%/1   | Total: 15m 33s | Avg: 15m 33s | Max: 15m 33s | Hits:  65%/284   
      🟩 MSVC14.42          Pass: 100%/1   | Total: 15m 39s | Avg: 15m 39s | Max: 15m 39s | Hits:  65%/284   
      🟥 NVHPC25.3          Pass:   0%/2   | Total: 20m 44s | Avg: 10m 22s | Max: 10m 34s
    🟨 cxx_family
      🟥 Clang              Pass:   0%/9   | Total: 28m 06s | Avg:  3m 07s | Max:  3m 49s
      🟥 GCC                Pass:   0%/11  | Total: 30m 38s | Avg:  2m 47s | Max:  3m 48s
      🟩 MSVC               Pass: 100%/2   | Total: 31m 12s | Avg: 15m 36s | Max: 15m 39s | Hits:  65%/568   
      🟥 NVHPC              Pass:   0%/2   | Total: 20m 44s | Avg: 10m 22s | Max: 10m 34s
    🟨 cudacxx_family
      🟨 nvcc               Pass:   8%/24  | Total:  1h 50m | Avg:  4m 36s | Max: 15m 39s | Hits:  65%/568   
    🟨 cpu
      🟨 amd64              Pass:  10%/20  | Total:  1h 37m | Avg:  4m 52s | Max: 15m 39s | Hits:  65%/568   
      🟥 arm64              Pass:   0%/4   | Total: 13m 13s | Avg:  3m 18s | Max:  3m 24s
    🟨 gpu
      🟥 h100               Pass:   0%/2   | Total:  3m 21s | Avg:  1m 40s | Max:  3m 21s
      🟨 rtx2080            Pass:   9%/22  | Total:  1h 47m | Avg:  4m 52s | Max: 15m 39s | Hits:  65%/568   
    🟨 jobs
      🟨 Build              Pass:   9%/21  | Total:  1h 50m | Avg:  5m 16s | Max: 15m 39s | Hits:  65%/568   
      🟥 Test               Pass:   0%/3  
    🟥 sm
      🟥 90                 Pass:   0%/3   | Total:  6m 28s | Avg:  2m 09s | Max:  3m 21s
      🟥 90a                Pass:   0%/1   | Total:  3m 15s | Avg:  3m 15s | Max:  3m 15s
    🟨 std
      🟥 17                 Pass:   0%/4   | Total: 20m 00s | Avg:  5m 00s | Max: 10m 10s
      🟨 20                 Pass:  10%/20  | Total:  1h 30m | Avg:  4m 32s | Max: 15m 39s | Hits:  65%/568   
    

👃 Inspect Changes

Modifications in project?

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

@caugonnet

Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

Copy link
Copy Markdown
Contributor
🟩 CI finished in 1h 23m: Pass: 100%/24 | Total: 6h 44m | Avg: 16m 52s | Max: 30m 43s | Hits: 42%/13372
  • 🟩 cudax: Pass: 100%/24 | Total: 6h 44m | Avg: 16m 52s | Max: 30m 43s | Hits: 42%/13372

    🟩 cpu
      🟩 amd64              Pass: 100%/20  | Total:  5h 45m | Avg: 17m 15s | Max: 30m 43s | Hits:  43%/11044 
      🟩 arm64              Pass: 100%/4   | Total: 59m 39s | Avg: 14m 54s | Max: 16m 22s | Hits:  34%/2328  
    🟩 ctk
      🟩 12.0               Pass: 100%/1   | Total: 16m 41s | Avg: 16m 41s | Max: 16m 41s | Hits:  46%/284   
      🟩 12.8               Pass: 100%/23  | Total:  6h 28m | Avg: 16m 52s | Max: 30m 43s | Hits:  42%/13088 
    🟩 cudacxx
      🟩 nvcc12.0           Pass: 100%/1   | Total: 16m 41s | Avg: 16m 41s | Max: 16m 41s | Hits:  46%/284   
      🟩 nvcc12.8           Pass: 100%/23  | Total:  6h 28m | Avg: 16m 52s | Max: 30m 43s | Hits:  42%/13088 
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/24  | Total:  6h 44m | Avg: 16m 52s | Max: 30m 43s | Hits:  42%/13372 
    🟩 cxx
      🟩 Clang14            Pass: 100%/1   | Total: 15m 05s | Avg: 15m 05s | Max: 15m 05s | Hits:  34%/584   
      🟩 Clang15            Pass: 100%/1   | Total: 17m 35s | Avg: 17m 35s | Max: 17m 35s | Hits:  34%/582   
      🟩 Clang16            Pass: 100%/1   | Total: 16m 59s | Avg: 16m 59s | Max: 16m 59s | Hits:  34%/582   
      🟩 Clang17            Pass: 100%/1   | Total: 18m 09s | Avg: 18m 09s | Max: 18m 09s | Hits:  34%/582   
      🟩 Clang18            Pass: 100%/1   | Total: 17m 52s | Avg: 17m 52s | Max: 17m 52s | Hits:  34%/582   
      🟩 Clang19            Pass: 100%/4   | Total: 59m 24s | Avg: 14m 51s | Max: 17m 58s | Hits:  50%/2328  
      🟩 GCC10              Pass: 100%/1   | Total: 17m 04s | Avg: 17m 04s | Max: 17m 04s | Hits:  34%/584   
      🟩 GCC11              Pass: 100%/1   | Total: 18m 07s | Avg: 18m 07s | Max: 18m 07s | Hits:  34%/582   
      🟩 GCC12              Pass: 100%/1   | Total: 18m 51s | Avg: 18m 51s | Max: 18m 51s | Hits:  34%/582   
      🟩 GCC13              Pass: 100%/8   | Total:  1h 51m | Avg: 13m 56s | Max: 18m 29s | Hits:  50%/4656  
      🟩 MSVC14.39          Pass: 100%/1   | Total: 16m 41s | Avg: 16m 41s | Max: 16m 41s | Hits:  46%/284   
      🟩 MSVC14.42          Pass: 100%/1   | Total: 17m 12s | Avg: 17m 12s | Max: 17m 12s | Hits:  44%/284   
      🟩 NVHPC25.3          Pass: 100%/2   | Total:  1h 00m | Avg: 30m 14s | Max: 30m 43s | Hits:  22%/1160  
    🟩 cxx_family
      🟩 Clang              Pass: 100%/9   | Total:  2h 25m | Avg: 16m 07s | Max: 18m 09s | Hits:  41%/5240  
      🟩 GCC                Pass: 100%/11  | Total:  2h 45m | Avg: 15m 02s | Max: 18m 51s | Hits:  46%/6404  
      🟩 MSVC               Pass: 100%/2   | Total: 33m 53s | Avg: 16m 56s | Max: 17m 12s | Hits:  45%/568   
      🟩 NVHPC              Pass: 100%/2   | Total:  1h 00m | Avg: 30m 14s | Max: 30m 43s | Hits:  22%/1160  
    🟩 gpu
      🟩 h100               Pass: 100%/2   | Total: 24m 13s | Avg: 12m 06s | Max: 12m 42s | Hits:  67%/1164  
      🟩 rtx2080            Pass: 100%/22  | Total:  6h 20m | Avg: 17m 18s | Max: 30m 43s | Hits:  39%/12208 
    🟩 jobs
      🟩 Build              Pass: 100%/21  | Total:  6h 08m | Avg: 17m 31s | Max: 30m 43s | Hits:  33%/11626 
      🟩 Test               Pass: 100%/3   | Total: 36m 46s | Avg: 12m 15s | Max: 12m 55s | Hits:  99%/1746  
    🟩 sm
      🟩 90                 Pass: 100%/3   | Total: 36m 37s | Avg: 12m 12s | Max: 12m 42s | Hits:  56%/1746  
      🟩 90a                Pass: 100%/1   | Total: 12m 54s | Avg: 12m 54s | Max: 12m 54s | Hits:  34%/582   
    🟩 std
      🟩 17                 Pass: 100%/4   | Total:  1h 10m | Avg: 17m 38s | Max: 29m 45s | Hits:  31%/2326  
      🟩 20                 Pass: 100%/20  | Total:  5h 34m | Avg: 16m 43s | Max: 30m 43s | Hits:  44%/11046 
    

👃 Inspect Changes

Modifications in project?

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
alliepiper enabled auto-merge (squash) April 10, 2025 21:12
@alliepiper
alliepiper merged commit 48f2b89 into NVIDIA:main Apr 10, 2025
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL 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
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stf Sequential Task Flow programming model

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants