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

Let Catch2 report cudaError descriptions #1808

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

bernhardmgruber
Copy link
Contributor

This PR adds a Catch2 string maker to pretty-print cudaErrors. A failed check that looked like:

/home/bgruber/dev/cccl/cub/test/catch2_test_launch_helper.h:196: FAILED:
  REQUIRE( cudaSuccess == error )
with expansion:
  0 == 9

will then look like:

/home/bgruber/dev/cccl/cub/test/catch2_test_launch_helper.h:196: FAILED:
  REQUIRE( cudaSuccess == error )
with expansion:
  0 (no error)
  ==
  9 (invalid configuration argument)

@bernhardmgruber bernhardmgruber marked this pull request as ready for review June 5, 2024 14:53
@bernhardmgruber bernhardmgruber requested review from a team as code owners June 5, 2024 14:53
@bernhardmgruber bernhardmgruber enabled auto-merge (squash) June 5, 2024 17:13
Copy link
Contributor

github-actions bot commented Jun 5, 2024

🟩 CI finished in 2h 30m: Pass: 100%/249 | Total: 2d 21h | Avg: 16m 38s | Max: 49m 15s | Hits: 88%/248310
  • 🟩 cub: Pass: 100%/131 | Total: 2d 10h | Avg: 26m 57s | Max: 49m 15s | Hits: 74%/109044

    🟩 cpu
      🟩 amd64              Pass: 100%/123 | Total:  2d 06h | Avg: 26m 47s | Max: 49m 15s | Hits:  74%/102236
      🟩 arm64              Pass: 100%/8   | Total:  3h 57m | Avg: 29m 42s | Max: 33m 07s | Hits:  66%/6808  
    🟩 ctk
      🟩 11.1               Pass: 100%/15  | Total:  6h 23m | Avg: 25m 32s | Max: 43m 55s | Hits:  63%/11554 
      🟩 11.8               Pass: 100%/3   | Total:  1h 59m | Avg: 39m 52s | Max: 42m 54s | Hits:  66%/2553  
      🟩 12.4               Pass: 100%/113 | Total:  2d 02h | Avg: 26m 48s | Max: 49m 15s | Hits:  75%/94937 
    🟩 cudacxx_full
      🟩 clang-cuda17       Pass: 100%/2   | Total: 37m 33s | Avg: 18m 46s | Max: 18m 55s | Hits:  69%/1408  
      🟩 nvcc11.1           Pass: 100%/15  | Total:  6h 23m | Avg: 25m 32s | Max: 43m 55s | Hits:  63%/11554 
      🟩 nvcc11.8           Pass: 100%/3   | Total:  1h 59m | Avg: 39m 52s | Max: 42m 54s | Hits:  66%/2553  
      🟩 nvcc12.4           Pass: 100%/111 | Total:  2d 01h | Avg: 26m 57s | Max: 49m 15s | Hits:  75%/93529 
    🟩 cudacxx_name
      🟩 clang-cuda         Pass: 100%/2   | Total: 37m 33s | Avg: 18m 46s | Max: 18m 55s | Hits:  69%/1408  
      🟩 nvcc               Pass: 100%/129 | Total:  2d 10h | Avg: 27m 05s | Max: 49m 15s | Hits:  74%/107636
    🟩 cxx_full
      🟩 clang9             Pass: 100%/6   | Total:  2h 38m | Avg: 26m 20s | Max: 30m 36s | Hits:  65%/4884  
      🟩 clang10            Pass: 100%/3   | Total:  1h 28m | Avg: 29m 24s | Max: 31m 26s | Hits:  66%/2559  
      🟩 clang11            Pass: 100%/4   | Total:  1h 49m | Avg: 27m 21s | Max: 28m 54s | Hits:  66%/3412  
      🟩 clang12            Pass: 100%/4   | Total:  1h 52m | Avg: 28m 01s | Max: 28m 56s | Hits:  66%/3412  
      🟩 clang13            Pass: 100%/4   | Total:  1h 52m | Avg: 28m 00s | Max: 29m 08s | Hits:  66%/3412  
      🟩 clang14            Pass: 100%/4   | Total:  1h 50m | Avg: 27m 33s | Max: 28m 09s | Hits:  66%/3412  
      🟩 clang15            Pass: 100%/4   | Total:  2h 00m | Avg: 30m 00s | Max: 34m 07s | Hits:  66%/3404  
      🟩 clang16            Pass: 100%/4   | Total:  1h 56m | Avg: 29m 07s | Max: 30m 53s | Hits:  66%/3404  
      🟩 clang17            Pass: 100%/26  | Total:  9h 42m | Avg: 22m 24s | Max: 30m 51s | Hits:  87%/21832 
      🟩 gcc6               Pass: 100%/2   | Total: 49m 32s | Avg: 24m 46s | Max: 25m 39s | Hits:  63%/1550  
      🟩 gcc7               Pass: 100%/6   | Total:  2h 41m | Avg: 26m 59s | Max: 31m 02s | Hits:  64%/4887  
      🟩 gcc8               Pass: 100%/6   | Total:  2h 38m | Avg: 26m 20s | Max: 30m 10s | Hits:  64%/4887  
      🟩 gcc9               Pass: 100%/6   | Total:  2h 43m | Avg: 27m 10s | Max: 30m 20s | Hits:  64%/4887  
      🟩 gcc10              Pass: 100%/4   | Total:  2h 06m | Avg: 31m 35s | Max: 36m 01s | Hits:  66%/3412  
      🟩 gcc11              Pass: 100%/7   | Total:  4h 03m | Avg: 34m 48s | Max: 42m 54s | Hits:  66%/5957  
      🟩 gcc12              Pass: 100%/4   | Total:  1h 59m | Avg: 29m 52s | Max: 32m 40s | Hits:  66%/3404  
      🟩 gcc13              Pass: 100%/28  | Total: 10h 28m | Avg: 22m 27s | Max: 41m 39s | Hits:  83%/23828 
      🟩 Intel2023.2.0      Pass: 100%/3   | Total:  1h 47m | Avg: 35m 51s | Max: 39m 37s | Hits:  63%/2331  
      🟩 MSVC14.16          Pass: 100%/1   | Total: 43m 55s | Avg: 43m 55s | Max: 43m 55s | Hits:  67%/695   
      🟩 MSVC14.29          Pass: 100%/2   | Total:  1h 31m | Avg: 45m 41s | Max: 49m 15s | Hits:  67%/1390  
      🟩 MSVC14.39          Pass: 100%/3   | Total:  2h 09m | Avg: 43m 05s | Max: 46m 28s | Hits:  67%/2085  
    🟩 cxx_name
      🟩 clang              Pass: 100%/59  | Total:  1d 01h | Avg: 25m 34s | Max: 34m 07s | Hits:  75%/49731 
      🟩 gcc                Pass: 100%/63  | Total:  1d 03h | Avg: 26m 12s | Max: 42m 54s | Hits:  73%/52812 
      🟩 Intel              Pass: 100%/3   | Total:  1h 47m | Avg: 35m 51s | Max: 39m 37s | Hits:  63%/2331  
      🟩 MSVC               Pass: 100%/6   | Total:  4h 24m | Avg: 44m 05s | Max: 49m 15s | Hits:  67%/4170  
    🟩 gpu
      🟩 v100               Pass: 100%/131 | Total:  2d 10h | Avg: 26m 57s | Max: 49m 15s | Hits:  74%/109044
    🟩 jobs
      🟩 Build              Pass: 100%/99  | Total:  2d 00h | Avg: 29m 10s | Max: 49m 15s | Hits:  66%/81812 
      🟩 DeviceLaunch       Pass: 100%/8   | Total:  2h 39m | Avg: 19m 53s | Max: 30m 50s | Hits:  99%/6808  
      🟩 GraphCapture       Pass: 100%/8   | Total:  2h 24m | Avg: 18m 06s | Max: 41m 39s | Hits:  95%/6808  
      🟩 HostLaunch         Pass: 100%/8   | Total:  2h 27m | Avg: 18m 27s | Max: 24m 14s | Hits:  99%/6808  
      🟩 TestGPU            Pass: 100%/8   | Total:  3h 11m | Avg: 23m 56s | Max: 27m 36s | Hits:  99%/6808  
    🟩 os
      🟩 ubuntu18.04        Pass: 100%/14  | Total:  5h 39m | Avg: 24m 13s | Max: 26m 56s | Hits:  63%/10859 
      🟩 ubuntu20.04        Pass: 100%/35  | Total: 16h 49m | Avg: 28m 51s | Max: 36m 01s | Hits:  66%/29855 
      🟩 ubuntu22.04        Pass: 100%/76  | Total:  1d 07h | Avg: 25m 14s | Max: 42m 54s | Hits:  79%/64160 
      🟩 windows2022        Pass: 100%/6   | Total:  4h 24m | Avg: 44m 05s | Max: 49m 15s | Hits:  67%/4170  
    🟩 sm
      🟩 60;70;80;90        Pass: 100%/3   | Total:  1h 59m | Avg: 39m 52s | Max: 42m 54s | Hits:  66%/2553  
      🟩 90a                Pass: 100%/4   | Total:  1h 01m | Avg: 15m 18s | Max: 16m 27s | Hits:  66%/3404  
    🟩 std
      🟩 11                 Pass: 100%/34  | Total: 16h 02m | Avg: 28m 18s | Max: 41m 39s | Hits:  72%/28503 
      🟩 14                 Pass: 100%/37  | Total: 17h 00m | Avg: 27m 34s | Max: 46m 28s | Hits:  73%/30588 
      🟩 17                 Pass: 100%/36  | Total: 15h 50m | Avg: 26m 24s | Max: 49m 15s | Hits:  73%/29822 
      🟩 20                 Pass: 100%/24  | Total:  9h 59m | Avg: 24m 57s | Max: 42m 36s | Hits:  77%/20131 
    
  • 🟩 thrust: Pass: 100%/118 | Total: 10h 13m | Avg: 5m 11s | Max: 19m 53s | Hits: 99%/139266

    🟩 cpu
      🟩 amd64              Pass: 100%/110 | Total:  9h 48m | Avg:  5m 21s | Max: 19m 53s | Hits:  99%/129822
      🟩 arm64              Pass: 100%/8   | Total: 24m 46s | Avg:  3m 05s | Max:  3m 21s | Hits:  99%/9444  
    🟩 ctk
      🟩 11.1               Pass: 100%/15  | Total: 54m 26s | Avg:  3m 37s | Max: 16m 02s | Hits:  99%/17705 
      🟩 11.8               Pass: 100%/3   | Total:  9m 56s | Avg:  3m 18s | Max:  3m 31s | Hits:  99%/3543  
      🟩 12.4               Pass: 100%/100 | Total:  9h 08m | Avg:  5m 29s | Max: 19m 53s | Hits:  99%/118018
    🟩 cudacxx_full
      🟩 clang-cuda17       Pass: 100%/2   | Total:  6m 44s | Avg:  3m 22s | Max:  3m 23s | Hits: 100%/2360  
      🟩 nvcc11.1           Pass: 100%/15  | Total: 54m 26s | Avg:  3m 37s | Max: 16m 02s | Hits:  99%/17705 
      🟩 nvcc11.8           Pass: 100%/3   | Total:  9m 56s | Avg:  3m 18s | Max:  3m 31s | Hits:  99%/3543  
      🟩 nvcc12.4           Pass: 100%/98  | Total:  9h 02m | Avg:  5m 31s | Max: 19m 53s | Hits:  99%/115658
    🟩 cudacxx_name
      🟩 clang-cuda         Pass: 100%/2   | Total:  6m 44s | Avg:  3m 22s | Max:  3m 23s | Hits: 100%/2360  
      🟩 nvcc               Pass: 100%/116 | Total: 10h 06m | Avg:  5m 13s | Max: 19m 53s | Hits:  99%/136906
    🟩 cxx_full
      🟩 clang9             Pass: 100%/6   | Total: 20m 46s | Avg:  3m 27s | Max:  4m 11s | Hits: 100%/7080  
      🟩 clang10            Pass: 100%/3   | Total: 11m 58s | Avg:  3m 59s | Max:  4m 12s | Hits: 100%/3540  
      🟩 clang11            Pass: 100%/4   | Total: 13m 41s | Avg:  3m 25s | Max:  3m 39s | Hits:  99%/4720  
      🟩 clang12            Pass: 100%/4   | Total: 13m 23s | Avg:  3m 20s | Max:  3m 32s | Hits: 100%/4720  
      🟩 clang13            Pass: 100%/4   | Total: 13m 43s | Avg:  3m 25s | Max:  3m 32s | Hits: 100%/4720  
      🟩 clang14            Pass: 100%/4   | Total: 13m 20s | Avg:  3m 20s | Max:  3m 28s | Hits: 100%/4720  
      🟩 clang15            Pass: 100%/4   | Total: 13m 40s | Avg:  3m 25s | Max:  3m 27s | Hits: 100%/4720  
      🟩 clang16            Pass: 100%/4   | Total: 13m 59s | Avg:  3m 29s | Max:  3m 39s | Hits:  99%/4720  
      🟩 clang17            Pass: 100%/18  | Total:  1h 53m | Avg:  6m 17s | Max: 16m 52s | Hits: 100%/21240 
      🟩 gcc6               Pass: 100%/2   | Total:  5m 22s | Avg:  2m 41s | Max:  2m 44s | Hits:  99%/2360  
      🟩 gcc7               Pass: 100%/6   | Total: 17m 19s | Avg:  2m 53s | Max:  3m 19s | Hits:  99%/7086  
      🟩 gcc8               Pass: 100%/6   | Total: 18m 17s | Avg:  3m 02s | Max:  3m 31s | Hits:  99%/7086  
      🟩 gcc9               Pass: 100%/6   | Total: 18m 02s | Avg:  3m 00s | Max:  3m 25s | Hits:  99%/7086  
      🟩 gcc10              Pass: 100%/4   | Total: 13m 46s | Avg:  3m 26s | Max:  3m 35s | Hits:  99%/4724  
      🟩 gcc11              Pass: 100%/7   | Total: 23m 51s | Avg:  3m 24s | Max:  3m 36s | Hits:  99%/8267  
      🟩 gcc12              Pass: 100%/4   | Total: 14m 13s | Avg:  3m 33s | Max:  3m 43s | Hits:  99%/4724  
      🟩 gcc13              Pass: 100%/20  | Total:  2h 06m | Avg:  6m 19s | Max: 17m 39s | Hits:  99%/23620 
      🟩 Intel2023.2.0      Pass: 100%/3   | Total: 12m 52s | Avg:  4m 17s | Max:  4m 23s | Hits: 100%/3549  
      🟩 MSVC14.16          Pass: 100%/1   | Total: 16m 02s | Avg: 16m 02s | Max: 16m 02s | Hits:  98%/1176  
      🟩 MSVC14.29          Pass: 100%/2   | Total: 24m 10s | Avg: 12m 05s | Max: 12m 16s | Hits:  98%/2352  
      🟩 MSVC14.39          Pass: 100%/6   | Total:  1h 34m | Avg: 15m 49s | Max: 19m 53s | Hits:  98%/7056  
    🟩 cxx_name
      🟩 clang              Pass: 100%/51  | Total:  3h 47m | Avg:  4m 28s | Max: 16m 52s | Hits:  99%/60180 
      🟩 gcc                Pass: 100%/55  | Total:  3h 57m | Avg:  4m 19s | Max: 17m 39s | Hits:  99%/64953 
      🟩 Intel              Pass: 100%/3   | Total: 12m 52s | Avg:  4m 17s | Max:  4m 23s | Hits: 100%/3549  
      🟩 MSVC               Pass: 100%/9   | Total:  2h 15m | Avg: 15m 01s | Max: 19m 53s | Hits:  98%/10584 
    🟩 gpu
      🟩 v100               Pass: 100%/118 | Total: 10h 13m | Avg:  5m 11s | Max: 19m 53s | Hits:  99%/139266
    🟩 jobs
      🟩 Build              Pass: 100%/99  | Total:  6h 27m | Avg:  3m 54s | Max: 16m 02s | Hits:  99%/116850
      🟩 TestCPU            Pass: 100%/11  | Total:  1h 44m | Avg:  9m 28s | Max: 19m 53s | Hits:  99%/12972 
      🟩 TestGPU            Pass: 100%/8   | Total:  2h 01m | Avg: 15m 11s | Max: 17m 39s | Hits:  99%/9444  
    🟩 os
      🟩 ubuntu18.04        Pass: 100%/14  | Total: 38m 24s | Avg:  2m 44s | Max:  3m 00s | Hits:  99%/16529 
      🟩 ubuntu20.04        Pass: 100%/35  | Total:  2h 01m | Avg:  3m 27s | Max:  4m 12s | Hits:  99%/41313 
      🟩 ubuntu22.04        Pass: 100%/60  | Total:  5h 18m | Avg:  5m 18s | Max: 17m 39s | Hits:  99%/70840 
      🟩 windows2022        Pass: 100%/9   | Total:  2h 15m | Avg: 15m 01s | Max: 19m 53s | Hits:  98%/10584 
    🟩 sm
      🟩 60;70;80;90        Pass: 100%/3   | Total:  9m 56s | Avg:  3m 18s | Max:  3m 31s | Hits:  99%/3543  
      🟩 90a                Pass: 100%/4   | Total: 12m 24s | Avg:  3m 06s | Max:  3m 11s | Hits:  99%/4724  
    🟩 std
      🟩 11                 Pass: 100%/30  | Total:  2h 02m | Avg:  4m 05s | Max: 15m 48s | Hits:  99%/35418 
      🟩 14                 Pass: 100%/34  | Total:  3h 12m | Avg:  5m 39s | Max: 18m 46s | Hits:  99%/40122 
      🟩 17                 Pass: 100%/33  | Total:  2h 55m | Avg:  5m 19s | Max: 19m 41s | Hits:  99%/38946 
      🟩 20                 Pass: 100%/21  | Total:  2h 02m | Avg:  5m 49s | Max: 19m 53s | Hits:  99%/24780 
    

👃 Inspect Changes

Modifications in project?

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

Modifications in project or dependencies?

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

🏃‍ Runner counts (total jobs: 249)

# Runner
178 linux-amd64-cpu16
40 linux-amd64-gpu-v100-latest-1
16 linux-arm64-cpu16
15 windows-amd64-cpu16

@bernhardmgruber bernhardmgruber merged commit fde1cf7 into NVIDIA:main Jun 5, 2024
554 checks passed
@bernhardmgruber bernhardmgruber deleted the catch2_cudaerror branch June 5, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants