Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change cudax::uninitialized_buffer to own its memory resource with cudax::any_resource #2293

Merged
merged 33 commits into from
Aug 28, 2024

Conversation

ericniebler
Copy link
Collaborator

Description

This PR addresses issue #2292 by changing uninitialized_buffer to store its memory resource in an any_resource instead of merely referring to a memory resource with resource_ref.

NOTE: I will rebase this PR when #2266 lands. See [7e33a55] for the changes in this PR.

closes #2292

Change member uninitialized_buffer::__mr_ from resource_ref to any_resource. Be sure to std::move __mr_ when moving the owning uninitialized_buffer.

Checklist

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

@ericniebler ericniebler added the CUDA Next Feature intended for the Cuda Next experimental library label Aug 26, 2024
@ericniebler ericniebler requested review from a team as code owners August 26, 2024 18:20
@ericniebler ericniebler requested review from a team as code owners August 26, 2024 18:20
Copy link

copy-pr-bot bot commented Aug 26, 2024

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.

@ericniebler ericniebler requested a review from alliepiper August 26, 2024 18:20
@ericniebler
Copy link
Collaborator Author

/ok to test

@ericniebler ericniebler added the pre-commit.ci autofix apply pre-commit auto-fixes automatically label Aug 26, 2024
@pre-commit-ci pre-commit-ci bot removed the pre-commit.ci autofix apply pre-commit auto-fixes automatically label Aug 26, 2024
Copy link
Contributor

🟨 CI finished in 11h 25m: Pass: 99%/421 | Total: 2d 06h | Avg: 7m 48s | Max: 45m 02s | Hits: 92%/34002
  • 🟨 cudax: Pass: 94%/55 | Total: 2h 39m | Avg: 2m 54s | Max: 9m 21s

    🔍 cpu: amd64 🔍
      🔍 amd64              Pass:  94%/51  | Total:  2h 30m | Avg:  2m 57s | Max:  9m 21s
      🟩 arm64              Pass: 100%/4   | Total:  9m 02s | Avg:  2m 15s | Max:  2m 29s
    🔍 jobs: Build 🔍
      🔍 Build              Pass:  93%/47  | Total:  2h 08m | Avg:  2m 43s | Max:  9m 21s
      🟩 Test               Pass: 100%/8   | Total: 31m 32s | Avg:  3m 56s | Max:  4m 09s
    🟨 cxx
      🟩 Clang9             Pass: 100%/2   | Total:  4m 56s | Avg:  2m 28s | Max:  2m 29s
      🟩 Clang10            Pass: 100%/2   | Total:  5m 12s | Avg:  2m 36s | Max:  2m 55s
      🟩 Clang11            Pass: 100%/4   | Total:  9m 46s | Avg:  2m 26s | Max:  2m 35s
      🟩 Clang12            Pass: 100%/4   | Total:  9m 26s | Avg:  2m 21s | Max:  2m 25s
      🟩 Clang13            Pass: 100%/4   | Total:  9m 21s | Avg:  2m 20s | Max:  2m 30s
      🟩 Clang14            Pass: 100%/6   | Total: 17m 51s | Avg:  2m 58s | Max:  4m 09s
      🟩 Clang15            Pass: 100%/2   | Total:  4m 57s | Avg:  2m 28s | Max:  2m 34s
      🟩 Clang16            Pass: 100%/6   | Total: 18m 03s | Avg:  3m 00s | Max:  4m 09s
      🟩 GCC9               Pass: 100%/2   | Total:  5m 00s | Avg:  2m 30s | Max:  2m 46s
      🟩 GCC10              Pass: 100%/4   | Total:  9m 43s | Avg:  2m 25s | Max:  2m 47s
      🟩 GCC11              Pass: 100%/4   | Total:  9m 54s | Avg:  2m 28s | Max:  2m 53s
      🟩 GCC12              Pass: 100%/12  | Total: 34m 30s | Avg:  2m 52s | Max:  3m 55s
      🟥 Intel2023.2.0      Pass:   0%/1   | Total:  2m 44s | Avg:  2m 44s | Max:  2m 44s
      🟥 MSVC14.36          Pass:   0%/1   | Total:  9m 21s | Avg:  9m 21s | Max:  9m 21s
      🟥 MSVC14.39          Pass:   0%/1   | Total:  8m 57s | Avg:  8m 57s | Max:  8m 57s
    🟨 cxx_family
      🟩 Clang              Pass: 100%/30  | Total:  1h 19m | Avg:  2m 39s | Max:  4m 09s
      🟩 GCC                Pass: 100%/22  | Total: 59m 07s | Avg:  2m 41s | Max:  3m 55s
      🟥 Intel              Pass:   0%/1   | Total:  2m 44s | Avg:  2m 44s | Max:  2m 44s
      🟥 MSVC               Pass:   0%/2   | Total: 18m 18s | Avg:  9m 09s | Max:  9m 21s
    🟨 cudacxx_family
      🟨 nvcc               Pass:  94%/55  | Total:  2h 39m | Avg:  2m 54s | Max:  9m 21s
    🟨 gpu
      🟨 v100               Pass:  94%/55  | Total:  2h 39m | Avg:  2m 54s | Max:  9m 21s
    🟨 ctk
      🟨 12.0               Pass:  95%/23  | Total:  1h 08m | Avg:  2m 58s | Max:  9m 21s
      🟨 12.5               Pass:  93%/32  | Total:  1h 31m | Avg:  2m 50s | Max:  8m 57s
    🟨 cudacxx
      🟨 nvcc12.0           Pass:  95%/23  | Total:  1h 08m | Avg:  2m 58s | Max:  9m 21s
      🟨 nvcc12.5           Pass:  93%/32  | Total:  1h 31m | Avg:  2m 50s | Max:  8m 57s
    🟩 sm
      🟩 90                 Pass: 100%/1   | Total:  2m 35s | Avg:  2m 35s | Max:  2m 35s
      🟩 90a                Pass: 100%/1   | Total:  2m 19s | Avg:  2m 19s | Max:  2m 19s
    🟨 std
      🟨 17                 Pass:  96%/31  | Total:  1h 22m | Avg:  2m 40s | Max:  4m 09s
      🟨 20                 Pass:  91%/24  | Total:  1h 16m | Avg:  3m 12s | Max:  9m 21s
    
  • 🟨 cub: Pass: 99%/131 | Total: 18h 45m | Avg: 8m 35s | Max: 29m 50s | Hits: 99%/4278

    🔍 cpu: amd64 🔍
      🔍 amd64              Pass:  99%/123 | Total: 18h 11m | Avg:  8m 52s | Max: 29m 50s | Hits:  99%/4278  
      🟩 arm64              Pass: 100%/8   | Total: 33m 48s | Avg:  4m 13s | Max:  4m 58s
    🔍 ctk: 12.5 🔍
      🟩 11.1               Pass: 100%/15  | Total:  1h 04m | Avg:  4m 19s | Max: 14m 34s | Hits:  99%/713   
      🟩 11.8               Pass: 100%/3   | Total: 14m 15s | Avg:  4m 45s | Max:  5m 04s
      🔍 12.5               Pass:  99%/113 | Total: 17h 25m | Avg:  9m 15s | Max: 29m 50s | Hits:  99%/3565  
    🔍 cudacxx: nvcc12.5 🔍
      🟩 ClangCUDA17        Pass: 100%/2   | Total:  7m 10s | Avg:  3m 35s | Max:  3m 38s
      🟩 nvcc11.1           Pass: 100%/15  | Total:  1h 04m | Avg:  4m 19s | Max: 14m 34s | Hits:  99%/713   
      🟩 nvcc11.8           Pass: 100%/3   | Total: 14m 15s | Avg:  4m 45s | Max:  5m 04s
      🔍 nvcc12.5           Pass:  99%/111 | Total: 17h 18m | Avg:  9m 21s | Max: 29m 50s | Hits:  99%/3565  
    🔍 cudacxx_family: nvcc 🔍
      🟩 ClangCUDA          Pass: 100%/2   | Total:  7m 10s | Avg:  3m 35s | Max:  3m 38s
      🔍 nvcc               Pass:  99%/129 | Total: 18h 37m | Avg:  8m 39s | Max: 29m 50s | Hits:  99%/4278  
    🔍 cxx: GCC13 🔍
      🟩 Clang9             Pass: 100%/6   | Total: 26m 54s | Avg:  4m 29s | Max:  5m 22s
      🟩 Clang10            Pass: 100%/3   | Total: 15m 27s | Avg:  5m 09s | Max:  5m 18s
      🟩 Clang11            Pass: 100%/4   | Total: 17m 07s | Avg:  4m 16s | Max:  4m 27s
      🟩 Clang12            Pass: 100%/4   | Total: 17m 57s | Avg:  4m 29s | Max:  4m 46s
      🟩 Clang13            Pass: 100%/4   | Total: 17m 31s | Avg:  4m 22s | Max:  4m 29s
      🟩 Clang14            Pass: 100%/4   | Total: 17m 10s | Avg:  4m 17s | Max:  4m 27s
      🟩 Clang15            Pass: 100%/4   | Total: 17m 30s | Avg:  4m 22s | Max:  4m 39s
      🟩 Clang16            Pass: 100%/4   | Total: 18m 08s | Avg:  4m 32s | Max:  4m 56s
      🟩 Clang17            Pass: 100%/26  | Total:  6h 15m | Avg: 14m 26s | Max: 29m 50s
      🟩 GCC6               Pass: 100%/2   | Total:  6m 51s | Avg:  3m 25s | Max:  3m 33s
      🟩 GCC7               Pass: 100%/6   | Total: 23m 12s | Avg:  3m 52s | Max:  4m 35s
      🟩 GCC8               Pass: 100%/6   | Total: 23m 27s | Avg:  3m 54s | Max:  4m 32s
      🟩 GCC9               Pass: 100%/6   | Total: 23m 58s | Avg:  3m 59s | Max:  4m 34s
      🟩 GCC10              Pass: 100%/4   | Total: 18m 12s | Avg:  4m 33s | Max:  4m 48s
      🟩 GCC11              Pass: 100%/7   | Total: 31m 33s | Avg:  4m 30s | Max:  5m 04s
      🟩 GCC12              Pass: 100%/4   | Total: 18m 02s | Avg:  4m 30s | Max:  4m 50s
      🔍 GCC13              Pass:  96%/28  | Total:  6h 04m | Avg: 13m 00s | Max: 26m 50s
      🟩 Intel2023.2.0      Pass: 100%/3   | Total: 15m 39s | Avg:  5m 13s | Max:  5m 21s
      🟩 MSVC14.16          Pass: 100%/1   | Total: 14m 34s | Avg: 14m 34s | Max: 14m 34s | Hits:  99%/713   
      🟩 MSVC14.29          Pass: 100%/2   | Total: 24m 27s | Avg: 12m 13s | Max: 12m 18s | Hits:  99%/1426  
      🟩 MSVC14.39          Pass: 100%/3   | Total: 38m 03s | Avg: 12m 41s | Max: 13m 00s | Hits:  99%/2139  
    🔍 cxx_family: GCC 🔍
      🟩 Clang              Pass: 100%/59  | Total:  8h 43m | Avg:  8m 51s | Max: 29m 50s
      🔍 GCC                Pass:  98%/63  | Total:  8h 29m | Avg:  8m 05s | Max: 26m 50s
      🟩 Intel              Pass: 100%/3   | Total: 15m 39s | Avg:  5m 13s | Max:  5m 21s
      🟩 MSVC               Pass: 100%/6   | Total:  1h 17m | Avg: 12m 50s | Max: 14m 34s | Hits:  99%/4278  
    🔍 jobs: DeviceLaunch 🔍
      🟩 Build              Pass: 100%/99  | Total:  8h 17m | Avg:  5m 01s | Max: 21m 41s | Hits:  99%/4278  
      🔍 DeviceLaunch       Pass:  87%/8   | Total:  2h 15m | Avg: 16m 53s | Max: 21m 23s
      🟩 GraphCapture       Pass: 100%/8   | Total:  2h 21m | Avg: 17m 38s | Max: 25m 13s
      🟩 HostLaunch         Pass: 100%/8   | Total:  2h 40m | Avg: 20m 00s | Max: 29m 50s
      🟩 TestGPU            Pass: 100%/8   | Total:  3h 11m | Avg: 23m 54s | Max: 26m 50s
    🔍 std: 11 🔍
      🔍 11                 Pass:  97%/34  | Total:  4h 25m | Avg:  7m 48s | Max: 23m 57s
      🟩 14                 Pass: 100%/37  | Total:  5h 11m | Avg:  8m 25s | Max: 26m 50s | Hits:  99%/2139  
      🟩 17                 Pass: 100%/36  | Total:  4h 54m | Avg:  8m 10s | Max: 23m 20s | Hits:  99%/1426  
      🟩 20                 Pass: 100%/24  | Total:  4h 13m | Avg: 10m 33s | Max: 29m 50s | Hits:  99%/713   
    🟨 gpu
      🟨 v100               Pass:  99%/131 | Total: 18h 45m | Avg:  8m 35s | Max: 29m 50s | Hits:  99%/4278  
    🟩 sm
      🟩 60;70;80;90        Pass: 100%/3   | Total: 14m 15s | Avg:  4m 45s | Max:  5m 04s
      🟩 90a                Pass: 100%/4   | Total: 33m 07s | Avg:  8m 16s | Max: 21m 41s
    
  • 🟩 thrust: Pass: 100%/118 | Total: 11h 48m | Avg: 6m 00s | Max: 23m 05s | Hits: 99%/13005

    🟩 cpu
      🟩 amd64              Pass: 100%/110 | Total: 11h 19m | Avg:  6m 10s | Max: 23m 05s | Hits:  99%/13005 
      🟩 arm64              Pass: 100%/8   | Total: 29m 08s | Avg:  3m 38s | Max:  3m 50s
    🟩 ctk
      🟩 11.1               Pass: 100%/15  | Total:  1h 03m | Avg:  4m 15s | Max: 15m 30s | Hits:  99%/1445  
      🟩 11.8               Pass: 100%/3   | Total: 13m 10s | Avg:  4m 23s | Max:  4m 45s
      🟩 12.5               Pass: 100%/100 | Total: 10h 31m | Avg:  6m 19s | Max: 23m 05s | Hits:  99%/11560 
    🟩 cudacxx
      🟩 ClangCUDA17        Pass: 100%/2   | Total:  7m 50s | Avg:  3m 55s | Max:  3m 59s
      🟩 nvcc11.1           Pass: 100%/15  | Total:  1h 03m | Avg:  4m 15s | Max: 15m 30s | Hits:  99%/1445  
      🟩 nvcc11.8           Pass: 100%/3   | Total: 13m 10s | Avg:  4m 23s | Max:  4m 45s
      🟩 nvcc12.5           Pass: 100%/98  | Total: 10h 24m | Avg:  6m 22s | Max: 23m 05s | Hits:  99%/11560 
    🟩 cudacxx_family
      🟩 ClangCUDA          Pass: 100%/2   | Total:  7m 50s | Avg:  3m 55s | Max:  3m 59s
      🟩 nvcc               Pass: 100%/116 | Total: 11h 41m | Avg:  6m 02s | Max: 23m 05s | Hits:  99%/13005 
    🟩 cxx
      🟩 Clang9             Pass: 100%/6   | Total: 26m 05s | Avg:  4m 20s | Max:  5m 37s
      🟩 Clang10            Pass: 100%/3   | Total: 14m 16s | Avg:  4m 45s | Max:  5m 16s
      🟩 Clang11            Pass: 100%/4   | Total: 16m 41s | Avg:  4m 10s | Max:  4m 45s
      🟩 Clang12            Pass: 100%/4   | Total: 15m 54s | Avg:  3m 58s | Max:  4m 14s
      🟩 Clang13            Pass: 100%/4   | Total: 16m 17s | Avg:  4m 04s | Max:  4m 32s
      🟩 Clang14            Pass: 100%/4   | Total: 16m 42s | Avg:  4m 10s | Max:  4m 32s
      🟩 Clang15            Pass: 100%/4   | Total: 16m 23s | Avg:  4m 05s | Max:  4m 20s
      🟩 Clang16            Pass: 100%/4   | Total: 17m 13s | Avg:  4m 18s | Max:  4m 30s
      🟩 Clang17            Pass: 100%/18  | Total:  2h 02m | Avg:  6m 49s | Max: 18m 56s
      🟩 GCC6               Pass: 100%/2   | Total:  7m 18s | Avg:  3m 39s | Max:  4m 06s
      🟩 GCC7               Pass: 100%/6   | Total: 22m 30s | Avg:  3m 45s | Max:  4m 42s
      🟩 GCC8               Pass: 100%/6   | Total: 21m 27s | Avg:  3m 34s | Max:  3m 55s
      🟩 GCC9               Pass: 100%/6   | Total: 22m 25s | Avg:  3m 44s | Max:  4m 34s
      🟩 GCC10              Pass: 100%/4   | Total: 16m 38s | Avg:  4m 09s | Max:  4m 26s
      🟩 GCC11              Pass: 100%/7   | Total: 29m 40s | Avg:  4m 14s | Max:  4m 45s
      🟩 GCC12              Pass: 100%/4   | Total: 17m 15s | Avg:  4m 18s | Max:  4m 51s
      🟩 GCC13              Pass: 100%/20  | Total:  2h 18m | Avg:  6m 55s | Max: 23m 05s
      🟩 Intel2023.2.0      Pass: 100%/3   | Total: 15m 39s | Avg:  5m 13s | Max:  5m 24s
      🟩 MSVC14.16          Pass: 100%/1   | Total: 15m 30s | Avg: 15m 30s | Max: 15m 30s | Hits:  99%/1445  
      🟩 MSVC14.29          Pass: 100%/2   | Total: 28m 22s | Avg: 14m 11s | Max: 15m 09s | Hits:  99%/2890  
      🟩 MSVC14.39          Pass: 100%/6   | Total:  1h 51m | Avg: 18m 34s | Max: 22m 54s | Hits:  99%/8670  
    🟩 cxx_family
      🟩 Clang              Pass: 100%/51  | Total:  4h 22m | Avg:  5m 08s | Max: 18m 56s
      🟩 GCC                Pass: 100%/55  | Total:  4h 35m | Avg:  5m 00s | Max: 23m 05s
      🟩 Intel              Pass: 100%/3   | Total: 15m 39s | Avg:  5m 13s | Max:  5m 24s
      🟩 MSVC               Pass: 100%/9   | Total:  2h 35m | Avg: 17m 15s | Max: 22m 54s | Hits:  99%/13005 
    🟩 gpu
      🟩 v100               Pass: 100%/118 | Total: 11h 48m | Avg:  6m 00s | Max: 23m 05s | Hits:  99%/13005 
    🟩 jobs
      🟩 Build              Pass: 100%/99  | Total:  7h 49m | Avg:  4m 44s | Max: 16m 27s | Hits:  99%/8670  
      🟩 TestCPU            Pass: 100%/11  | Total:  1h 57m | Avg: 10m 41s | Max: 22m 54s | Hits:  99%/4335  
      🟩 TestGPU            Pass: 100%/8   | Total:  2h 02m | Avg: 15m 16s | Max: 23m 05s
    🟩 sm
      🟩 60;70;80;90        Pass: 100%/3   | Total: 13m 10s | Avg:  4m 23s | Max:  4m 45s
      🟩 90a                Pass: 100%/4   | Total: 14m 24s | Avg:  3m 36s | Max:  3m 51s
    🟩 std
      🟩 11                 Pass: 100%/30  | Total:  2h 20m | Avg:  4m 40s | Max: 14m 40s
      🟩 14                 Pass: 100%/34  | Total:  3h 35m | Avg:  6m 20s | Max: 20m 27s | Hits:  99%/5780  
      🟩 17                 Pass: 100%/33  | Total:  3h 21m | Avg:  6m 06s | Max: 20m 58s | Hits:  99%/4335  
      🟩 20                 Pass: 100%/21  | Total:  2h 31m | Avg:  7m 14s | Max: 23m 05s | Hits:  99%/2890  
    
  • 🟩 libcudacxx: Pass: 100%/112 | Total: 21h 00m | Avg: 11m 15s | Max: 45m 02s | Hits: 86%/16719

    🟩 cpu
      🟩 amd64              Pass: 100%/104 | Total: 20h 24m | Avg: 11m 46s | Max: 45m 02s | Hits:  86%/16719 
      🟩 arm64              Pass: 100%/8   | Total: 36m 18s | Avg:  4m 32s | Max: 12m 38s
    🟩 ctk
      🟩 11.1               Pass: 100%/15  | Total:  3h 24m | Avg: 13m 37s | Max: 39m 29s | Hits:  89%/2594  
      🟩 11.8               Pass: 100%/3   | Total: 50m 35s | Avg: 16m 51s | Max: 20m 48s
      🟩 12.5               Pass: 100%/94  | Total: 16h 45m | Avg: 10m 42s | Max: 45m 02s | Hits:  85%/14125 
    🟩 cudacxx
      🟩 ClangCUDA17        Pass: 100%/2   | Total: 36m 59s | Avg: 18m 29s | Max: 19m 25s
      🟩 nvcc11.1           Pass: 100%/15  | Total:  3h 24m | Avg: 13m 37s | Max: 39m 29s | Hits:  89%/2594  
      🟩 nvcc11.8           Pass: 100%/3   | Total: 50m 35s | Avg: 16m 51s | Max: 20m 48s
      🟩 nvcc12.5           Pass: 100%/92  | Total: 16h 08m | Avg: 10m 31s | Max: 45m 02s | Hits:  85%/14125 
    🟩 cudacxx_family
      🟩 ClangCUDA          Pass: 100%/2   | Total: 36m 59s | Avg: 18m 29s | Max: 19m 25s
      🟩 nvcc               Pass: 100%/110 | Total: 20h 23m | Avg: 11m 07s | Max: 45m 02s | Hits:  86%/16719 
    🟩 cxx
      🟩 Clang9             Pass: 100%/6   | Total:  1h 22m | Avg: 13m 45s | Max: 26m 47s
      🟩 Clang10            Pass: 100%/3   | Total: 30m 32s | Avg: 10m 10s | Max: 12m 32s
      🟩 Clang11            Pass: 100%/4   | Total: 15m 25s | Avg:  3m 51s | Max:  4m 32s
      🟩 Clang12            Pass: 100%/4   | Total: 38m 15s | Avg:  9m 33s | Max: 12m 05s
      🟩 Clang13            Pass: 100%/4   | Total: 16m 18s | Avg:  4m 04s | Max:  4m 23s
      🟩 Clang14            Pass: 100%/4   | Total: 40m 07s | Avg: 10m 01s | Max: 19m 30s
      🟩 Clang15            Pass: 100%/4   | Total: 32m 48s | Avg:  8m 12s | Max: 12m 14s
      🟩 Clang16            Pass: 100%/4   | Total: 46m 15s | Avg: 11m 33s | Max: 18m 49s
      🟩 Clang17            Pass: 100%/14  | Total:  3h 15m | Avg: 13m 58s | Max: 45m 02s
      🟩 GCC6               Pass: 100%/2   | Total: 44m 51s | Avg: 22m 25s | Max: 38m 12s
      🟩 GCC7               Pass: 100%/6   | Total: 24m 42s | Avg:  4m 07s | Max: 10m 22s
      🟩 GCC8               Pass: 100%/6   | Total:  1h 13m | Avg: 12m 13s | Max: 39m 29s
      🟩 GCC9               Pass: 100%/6   | Total:  1h 10m | Avg: 11m 40s | Max: 38m 33s
      🟩 GCC10              Pass: 100%/4   | Total: 13m 44s | Avg:  3m 26s | Max:  3m 40s
      🟩 GCC11              Pass: 100%/7   | Total:  1h 18m | Avg: 11m 12s | Max: 20m 48s
      🟩 GCC12              Pass: 100%/4   | Total: 38m 56s | Avg:  9m 44s | Max: 13m 47s
      🟩 GCC13              Pass: 100%/21  | Total:  4h 00m | Avg: 11m 26s | Max: 41m 43s
      🟩 Intel2023.2.0      Pass: 100%/3   | Total:  1h 05m | Avg: 21m 42s | Max: 23m 03s
      🟩 MSVC14.16          Pass: 100%/1   | Total: 20m 27s | Avg: 20m 27s | Max: 20m 27s | Hits:  89%/2594  
      🟩 MSVC14.29          Pass: 100%/2   | Total: 27m 07s | Avg: 13m 33s | Max: 13m 56s | Hits:  98%/5550  
      🟩 MSVC14.39          Pass: 100%/3   | Total:  1h 05m | Avg: 21m 57s | Max: 30m 53s | Hits:  77%/8575  
    🟩 cxx_family
      🟩 Clang              Pass: 100%/47  | Total:  8h 17m | Avg: 10m 35s | Max: 45m 02s
      🟩 GCC                Pass: 100%/56  | Total:  9h 44m | Avg: 10m 26s | Max: 41m 43s
      🟩 Intel              Pass: 100%/3   | Total:  1h 05m | Avg: 21m 42s | Max: 23m 03s
      🟩 MSVC               Pass: 100%/6   | Total:  1h 53m | Avg: 18m 54s | Max: 30m 53s | Hits:  86%/16719 
    🟩 gpu
      🟩 v100               Pass: 100%/112 | Total: 21h 00m | Avg: 11m 15s | Max: 45m 02s | Hits:  86%/16719 
    🟩 jobs
      🟩 Build              Pass: 100%/99  | Total: 16h 32m | Avg: 10m 01s | Max: 39m 29s | Hits:  86%/16719 
      🟩 NVRTC              Pass: 100%/4   | Total:  1h 29m | Avg: 22m 18s | Max: 25m 41s
      🟩 Test               Pass: 100%/8   | Total:  2h 57m | Avg: 22m 08s | Max: 45m 02s
      🟩 VerifyCodegen      Pass: 100%/1   | Total:  1m 55s | Avg:  1m 55s | Max:  1m 55s
    🟩 sm
      🟩 60;70;80;90        Pass: 100%/3   | Total: 50m 35s | Avg: 16m 51s | Max: 20m 48s
      🟩 90a                Pass: 100%/4   | Total: 13m 55s | Avg:  3m 28s | Max:  3m 50s
    🟩 std
      🟩 11                 Pass: 100%/29  | Total:  6h 48m | Avg: 14m 06s | Max: 39m 29s
      🟩 14                 Pass: 100%/32  | Total:  5h 18m | Avg:  9m 57s | Max: 30m 53s | Hits:  77%/7984  
      🟩 17                 Pass: 100%/31  | Total:  5h 06m | Avg:  9m 53s | Max: 41m 43s | Hits:  91%/5710  
      🟩 20                 Pass: 100%/19  | Total:  3h 45m | Avg: 11m 50s | Max: 45m 02s | Hits:  98%/3025  
    
  • 🟩 cccl: Pass: 100%/4 | Total: 18m 43s | Avg: 4m 40s | Max: 5m 26s

    🟩 cpu
      🟩 amd64              Pass: 100%/4   | Total: 18m 43s | Avg:  4m 40s | Max:  5m 26s
    🟩 ctk
      🟩 11.1               Pass: 100%/2   | Total:  8m 45s | Avg:  4m 22s | Max:  5m 26s
      🟩 12.5               Pass: 100%/2   | Total:  9m 58s | Avg:  4m 59s | Max:  5m 20s
    🟩 cudacxx
      🟩 nvcc11.1           Pass: 100%/2   | Total:  8m 45s | Avg:  4m 22s | Max:  5m 26s
      🟩 nvcc12.5           Pass: 100%/2   | Total:  9m 58s | Avg:  4m 59s | Max:  5m 20s
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/4   | Total: 18m 43s | Avg:  4m 40s | Max:  5m 26s
    🟩 cxx
      🟩 Clang9             Pass: 100%/1   | Total:  5m 26s | Avg:  5m 26s | Max:  5m 26s
      🟩 Clang17            Pass: 100%/1   | Total:  4m 38s | Avg:  4m 38s | Max:  4m 38s
      🟩 GCC6               Pass: 100%/1   | Total:  3m 19s | Avg:  3m 19s | Max:  3m 19s
      🟩 GCC13              Pass: 100%/1   | Total:  5m 20s | Avg:  5m 20s | Max:  5m 20s
    🟩 cxx_family
      🟩 Clang              Pass: 100%/2   | Total: 10m 04s | Avg:  5m 02s | Max:  5m 26s
      🟩 GCC                Pass: 100%/2   | Total:  8m 39s | Avg:  4m 19s | Max:  5m 20s
    🟩 gpu
      🟩 v100               Pass: 100%/4   | Total: 18m 43s | Avg:  4m 40s | Max:  5m 26s
    🟩 jobs
      🟩 Infra              Pass: 100%/4   | Total: 18m 43s | Avg:  4m 40s | Max:  5m 26s
    
  • 🟩 pycuda: Pass: 100%/1 | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s

    🟩 cpu
      🟩 amd64              Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s
    🟩 ctk
      🟩 12.5               Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s
    🟩 cudacxx
      🟩 nvcc12.5           Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s
    🟩 cxx
      🟩 GCC13              Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s
    🟩 cxx_family
      🟩 GCC                Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s
    🟩 gpu
      🟩 v100               Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s
    🟩 jobs
      🟩 Test               Pass: 100%/1   | Total: 11m 37s | Avg: 11m 37s | Max: 11m 37s
    

👃 Inspect Changes

Modifications in project?

Project
+/- CCCL Infrastructure
+/- libcu++
CUB
+/- Thrust
+/- CUDA Experimental
pycuda

Modifications in project or dependencies?

Project
+/- CCCL Infrastructure
+/- libcu++
+/- CUB
+/- Thrust
+/- CUDA Experimental
+/- pycuda

🏃‍ Runner counts (total jobs: 421)

# Runner
305 linux-amd64-cpu16
65 linux-amd64-gpu-v100-latest-1
28 linux-arm64-cpu16
23 windows-amd64-cpu16

@miscco
Copy link
Collaborator

miscco commented Aug 27, 2024

/ok to test

@miscco
Copy link
Collaborator

miscco commented Aug 27, 2024

/ok to test

Copy link
Contributor

🟨 CI finished in 1h 02m: Pass: 94%/56 | Total: 2h 57m | Avg: 3m 10s | Max: 11m 10s
  • 🟨 cudax: Pass: 94%/55 | Total: 2h 46m | Avg: 3m 01s | Max: 9m 42s

    🔍 cpu: amd64 🔍
      🔍 amd64              Pass:  94%/51  | Total:  2h 36m | Avg:  3m 04s | Max:  9m 42s
      🟩 arm64              Pass: 100%/4   | Total:  9m 30s | Avg:  2m 22s | Max:  3m 02s
    🔍 jobs: Build 🔍
      🔍 Build              Pass:  93%/47  | Total:  2h 12m | Avg:  2m 49s | Max:  9m 42s
      🟩 Test               Pass: 100%/8   | Total: 33m 40s | Avg:  4m 12s | Max:  4m 53s
    🟨 cxx
      🟩 Clang9             Pass: 100%/2   | Total:  5m 13s | Avg:  2m 36s | Max:  2m 38s
      🟩 Clang10            Pass: 100%/2   | Total:  5m 11s | Avg:  2m 35s | Max:  2m 45s
      🟩 Clang11            Pass: 100%/4   | Total: 11m 30s | Avg:  2m 52s | Max:  3m 38s
      🟩 Clang12            Pass: 100%/4   | Total: 10m 02s | Avg:  2m 30s | Max:  2m 40s
      🟩 Clang13            Pass: 100%/4   | Total: 10m 49s | Avg:  2m 42s | Max:  3m 07s
      🟩 Clang14            Pass: 100%/6   | Total: 19m 06s | Avg:  3m 11s | Max:  4m 53s
      🟩 Clang15            Pass: 100%/2   | Total:  5m 17s | Avg:  2m 38s | Max:  2m 42s
      🟩 Clang16            Pass: 100%/6   | Total: 18m 27s | Avg:  3m 04s | Max:  4m 02s
      🟩 GCC9               Pass: 100%/2   | Total:  4m 34s | Avg:  2m 17s | Max:  2m 19s
      🟩 GCC10              Pass: 100%/4   | Total: 10m 03s | Avg:  2m 30s | Max:  3m 09s
      🟩 GCC11              Pass: 100%/4   | Total:  9m 39s | Avg:  2m 24s | Max:  2m 47s
      🟩 GCC12              Pass: 100%/12  | Total: 35m 22s | Avg:  2m 56s | Max:  4m 49s
      🟥 Intel2023.2.0      Pass:   0%/1   | Total:  3m 02s | Avg:  3m 02s | Max:  3m 02s
      🟥 MSVC14.36          Pass:   0%/1   | Total:  9m 42s | Avg:  9m 42s | Max:  9m 42s
      🟥 MSVC14.39          Pass:   0%/1   | Total:  8m 27s | Avg:  8m 27s | Max:  8m 27s
    🟨 cxx_family
      🟩 Clang              Pass: 100%/30  | Total:  1h 25m | Avg:  2m 51s | Max:  4m 53s
      🟩 GCC                Pass: 100%/22  | Total: 59m 38s | Avg:  2m 42s | Max:  4m 49s
      🟥 Intel              Pass:   0%/1   | Total:  3m 02s | Avg:  3m 02s | Max:  3m 02s
      🟥 MSVC               Pass:   0%/2   | Total: 18m 09s | Avg:  9m 04s | Max:  9m 42s
    🟨 cudacxx_family
      🟨 nvcc               Pass:  94%/55  | Total:  2h 46m | Avg:  3m 01s | Max:  9m 42s
    🟨 gpu
      🟨 v100               Pass:  94%/55  | Total:  2h 46m | Avg:  3m 01s | Max:  9m 42s
    🟨 ctk
      🟨 12.0               Pass:  95%/23  | Total:  1h 11m | Avg:  3m 07s | Max:  9m 42s
      🟨 12.5               Pass:  93%/32  | Total:  1h 34m | Avg:  2m 57s | Max:  8m 27s
    🟨 cudacxx
      🟨 nvcc12.0           Pass:  95%/23  | Total:  1h 11m | Avg:  3m 07s | Max:  9m 42s
      🟨 nvcc12.5           Pass:  93%/32  | Total:  1h 34m | Avg:  2m 57s | Max:  8m 27s
    🟩 sm
      🟩 90                 Pass: 100%/1   | Total:  2m 00s | Avg:  2m 00s | Max:  2m 00s
      🟩 90a                Pass: 100%/1   | Total:  2m 09s | Avg:  2m 09s | Max:  2m 09s
    🟨 std
      🟨 17                 Pass:  96%/31  | Total:  1h 25m | Avg:  2m 46s | Max:  4m 53s
      🟨 20                 Pass:  91%/24  | Total:  1h 20m | Avg:  3m 21s | Max:  9m 42s
    
  • 🟩 pycuda: Pass: 100%/1 | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s

    🟩 cpu
      🟩 amd64              Pass: 100%/1   | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s
    🟩 ctk
      🟩 12.5               Pass: 100%/1   | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s
    🟩 cudacxx
      🟩 nvcc12.5           Pass: 100%/1   | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/1   | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s
    🟩 cxx
      🟩 GCC13              Pass: 100%/1   | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s
    🟩 cxx_family
      🟩 GCC                Pass: 100%/1   | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s
    🟩 gpu
      🟩 v100               Pass: 100%/1   | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s
    🟩 jobs
      🟩 Test               Pass: 100%/1   | Total: 11m 10s | Avg: 11m 10s | Max: 11m 10s
    

👃 Inspect Changes

Modifications in project?

Project
CCCL Infrastructure
libcu++
CUB
Thrust
+/- CUDA Experimental
pycuda

Modifications in project or dependencies?

Project
CCCL Infrastructure
libcu++
CUB
Thrust
+/- CUDA Experimental
+/- pycuda

🏃‍ Runner counts (total jobs: 56)

# Runner
41 linux-amd64-cpu16
9 linux-amd64-gpu-v100-latest-1
4 linux-arm64-cpu16
2 windows-amd64-cpu16

@miscco
Copy link
Collaborator

miscco commented Aug 27, 2024

/ok to test

@miscco
Copy link
Collaborator

miscco commented Aug 27, 2024

/ok to test

@miscco
Copy link
Collaborator

miscco commented Aug 27, 2024

/ok to test

//! @endrst
_CCCL_EXEC_CHECK_DISABLE
_CCCL_NODISCARD _CCCL_HOST_DEVICE _CUDA_VMR::resource_ref<_Properties...> resource() const noexcept
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericniebler I kept this as a resource_ref

Copy link
Contributor

🟩 CI finished in 6h 35m: Pass: 100%/56 | Total: 2h 55m | Avg: 3m 08s | Max: 10m 45s | Hits: 78%/112
  • 🟩 cudax: Pass: 100%/55 | Total: 2h 45m | Avg: 3m 00s | Max: 10m 45s | Hits: 78%/112

    🟩 cpu
      🟩 amd64              Pass: 100%/51  | Total:  2h 36m | Avg:  3m 03s | Max: 10m 45s | Hits:  78%/112   
      🟩 arm64              Pass: 100%/4   | Total:  9m 17s | Avg:  2m 19s | Max:  2m 25s
    🟩 ctk
      🟩 12.0               Pass: 100%/23  | Total:  1h 10m | Avg:  3m 03s | Max: 10m 22s | Hits:  78%/56    
      🟩 12.5               Pass: 100%/32  | Total:  1h 35m | Avg:  2m 58s | Max: 10m 45s | Hits:  78%/56    
    🟩 cudacxx
      🟩 nvcc12.0           Pass: 100%/23  | Total:  1h 10m | Avg:  3m 03s | Max: 10m 22s | Hits:  78%/56    
      🟩 nvcc12.5           Pass: 100%/32  | Total:  1h 35m | Avg:  2m 58s | Max: 10m 45s | Hits:  78%/56    
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/55  | Total:  2h 45m | Avg:  3m 00s | Max: 10m 45s | Hits:  78%/112   
    🟩 cxx
      🟩 Clang9             Pass: 100%/2   | Total:  5m 17s | Avg:  2m 38s | Max:  2m 45s
      🟩 Clang10            Pass: 100%/2   | Total:  4m 53s | Avg:  2m 26s | Max:  2m 29s
      🟩 Clang11            Pass: 100%/4   | Total: 10m 11s | Avg:  2m 32s | Max:  2m 53s
      🟩 Clang12            Pass: 100%/4   | Total: 10m 21s | Avg:  2m 35s | Max:  3m 05s
      🟩 Clang13            Pass: 100%/4   | Total:  9m 49s | Avg:  2m 27s | Max:  2m 39s
      🟩 Clang14            Pass: 100%/6   | Total: 18m 43s | Avg:  3m 07s | Max:  5m 05s
      🟩 Clang15            Pass: 100%/2   | Total:  5m 07s | Avg:  2m 33s | Max:  2m 35s
      🟩 Clang16            Pass: 100%/6   | Total: 19m 27s | Avg:  3m 14s | Max:  4m 56s
      🟩 GCC9               Pass: 100%/2   | Total:  4m 50s | Avg:  2m 25s | Max:  2m 31s
      🟩 GCC10              Pass: 100%/4   | Total:  9m 30s | Avg:  2m 22s | Max:  2m 37s
      🟩 GCC11              Pass: 100%/4   | Total:  9m 22s | Avg:  2m 20s | Max:  2m 33s
      🟩 GCC12              Pass: 100%/12  | Total: 33m 39s | Avg:  2m 48s | Max:  4m 18s
      🟩 Intel2023.2.0      Pass: 100%/1   | Total:  3m 10s | Avg:  3m 10s | Max:  3m 10s
      🟩 MSVC14.36          Pass: 100%/1   | Total: 10m 22s | Avg: 10m 22s | Max: 10m 22s | Hits:  78%/56    
      🟩 MSVC14.39          Pass: 100%/1   | Total: 10m 45s | Avg: 10m 45s | Max: 10m 45s | Hits:  78%/56    
    🟩 cxx_family
      🟩 Clang              Pass: 100%/30  | Total:  1h 23m | Avg:  2m 47s | Max:  5m 05s
      🟩 GCC                Pass: 100%/22  | Total: 57m 21s | Avg:  2m 36s | Max:  4m 18s
      🟩 Intel              Pass: 100%/1   | Total:  3m 10s | Avg:  3m 10s | Max:  3m 10s
      🟩 MSVC               Pass: 100%/2   | Total: 21m 07s | Avg: 10m 33s | Max: 10m 45s | Hits:  78%/112   
    🟩 gpu
      🟩 v100               Pass: 100%/55  | Total:  2h 45m | Avg:  3m 00s | Max: 10m 45s | Hits:  78%/112   
    🟩 jobs
      🟩 Build              Pass: 100%/47  | Total:  2h 11m | Avg:  2m 47s | Max: 10m 45s | Hits:  78%/112   
      🟩 Test               Pass: 100%/8   | Total: 33m 52s | Avg:  4m 14s | Max:  5m 05s
    🟩 sm
      🟩 90                 Pass: 100%/1   | Total:  2m 13s | Avg:  2m 13s | Max:  2m 13s
      🟩 90a                Pass: 100%/1   | Total:  2m 09s | Avg:  2m 09s | Max:  2m 09s
    🟩 std
      🟩 17                 Pass: 100%/31  | Total:  1h 24m | Avg:  2m 42s | Max:  4m 56s
      🟩 20                 Pass: 100%/24  | Total:  1h 21m | Avg:  3m 23s | Max: 10m 45s | Hits:  78%/112   
    
  • 🟩 pycuda: Pass: 100%/1 | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s

    🟩 cpu
      🟩 amd64              Pass: 100%/1   | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s
    🟩 ctk
      🟩 12.5               Pass: 100%/1   | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s
    🟩 cudacxx
      🟩 nvcc12.5           Pass: 100%/1   | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/1   | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s
    🟩 cxx
      🟩 GCC13              Pass: 100%/1   | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s
    🟩 cxx_family
      🟩 GCC                Pass: 100%/1   | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s
    🟩 gpu
      🟩 v100               Pass: 100%/1   | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s
    🟩 jobs
      🟩 Test               Pass: 100%/1   | Total: 10m 07s | Avg: 10m 07s | Max: 10m 07s
    

👃 Inspect Changes

Modifications in project?

Project
CCCL Infrastructure
libcu++
CUB
Thrust
+/- CUDA Experimental
pycuda

Modifications in project or dependencies?

Project
CCCL Infrastructure
libcu++
CUB
Thrust
+/- CUDA Experimental
+/- pycuda

🏃‍ Runner counts (total jobs: 56)

# Runner
41 linux-amd64-cpu16
9 linux-amd64-gpu-v100-latest-1
4 linux-arm64-cpu16
2 windows-amd64-cpu16

@miscco miscco merged commit 198208a into NVIDIA:main Aug 28, 2024
71 checks passed
miscco added a commit to miscco/cccl that referenced this pull request Aug 28, 2024
…`cudax::any_resource` (NVIDIA#2293)

* Implement `any_resource` an owning wrapper around any resource

Addresses NVIDIA#1426

* Continue development of @miscco's `any_resource`

* address review feedback

* [pre-commit.ci] auto code formatting

* mark all deallocation functions as `noexcept`

* fix some test failures

* more tests and bug fixes

* fix more build breaks

* attempt to fix the cudax docs build

* exclude more symbols from the cudax docs

* more portability fixes and doxygen tweaks

* once more with feeling

* getting pretty close now

* fix broken test

* deduplicate `basic_any_resource` constructors to satisfy doxygen

* [pre-commit.ci] auto code formatting

* don't use `if constexpr` when compiling as c++14

* more fixes for doxygen and c++14

* back out a questionable addition of `noexcept`

* molify msvc

* accommodate integer size differences on msvc

* eliminate shadow warning treated as error

* handle duplicate properties without triggering compiler warnings

* change `uninitialized_buffer` to own its memory resource using `any_resource`

* Use fully qualified name

* Drop `__host__ __device__` from uninitialized_buffer

* Revert "Drop `__host__ __device__` from uninitialized_buffer"

This reverts commit 5115b08.

* Just do the cursed thing

* Add missing include

* Adopt the doc string

---------

Co-authored-by: Michael Schellenberger Costa <[email protected]>
Co-authored-by: anon <users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CUDA Next Feature intended for the Cuda Next experimental library
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG]: cudax::uninitialized_buffer should own its memory resource
2 participants