Skip to content

Speedup runtime of c/parallel/test/test_radix_sort.cpp - #4848

Merged
oleksandr-pavlyk merged 1 commit into
NVIDIA:mainfrom
oleksandr-pavlyk:speed-up-c-parallel-test-radix-sort
May 30, 2025
Merged

oleksandr-pavlyk merged 1 commit into
NVIDIA:mainfrom
oleksandr-pavlyk:speed-up-c-parallel-test-radix-sort

Conversation

@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

Description

For every one of 4 test key types, the test was running 4 combinations where is_descending was true/false, and is_overwrite_okay was independently was true/false.

This resulted in 16 distinct compilations. This change pairs it down to replacing direct product of iteration spaces with zip of them, reducing it to 4 distinct compilations.

This way we still exercise each of distinct choices of boolean build parameters but at a fewer number of builds

Checklist

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

For every one of 4 test key types, the test was running 4 combinations
where is_descending was true/false, and is_overwrite_okay was
independently was true/false.

This resulted in 16 distinct compilations. This change pairs it down
to replacing direct product of iteration spaces with zip of them,
reducing it to 4 distinct compilations.

This way we still exercise each of distinct choices of boolean
build parameters but at a fewer number of builds
@oleksandr-pavlyk
oleksandr-pavlyk requested a review from a team as a code owner May 29, 2025 17:25
@oleksandr-pavlyk
oleksandr-pavlyk requested a review from shwina May 29, 2025 17:25
@oleksandr-pavlyk oleksandr-pavlyk added the c For all items related to the CCCL-C library label May 29, 2025
@github-project-automation github-project-automation Bot moved this to Todo in CCCL May 29, 2025
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL May 29, 2025
@github-actions

Copy link
Copy Markdown
Contributor
🟩 CI finished in 43m 40s: Pass: 100%/14 | Total: 2h 26m | Avg: 10m 28s | Max: 21m 42s | Hits: 98%/328
  • 🟩 python: Pass: 100%/12 | Total: 2h 11m | Avg: 10m 58s | Max: 21m 42s

    🟩 cpu
      🟩 amd64              Pass: 100%/12  | Total:  2h 11m | Avg: 10m 58s | Max: 21m 42s
    🟩 ctk
      🟩 12.9               Pass: 100%/12  | Total:  2h 11m | Avg: 10m 58s | Max: 21m 42s
    🟩 cudacxx
      🟩 nvcc12.9           Pass: 100%/12  | Total:  2h 11m | Avg: 10m 58s | Max: 21m 42s
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/12  | Total:  2h 11m | Avg: 10m 58s | Max: 21m 42s
    🟩 cxx
      🟩 GCC13              Pass: 100%/12  | Total:  2h 11m | Avg: 10m 58s | Max: 21m 42s
    🟩 cxx_family
      🟩 GCC                Pass: 100%/12  | Total:  2h 11m | Avg: 10m 58s | Max: 21m 42s
    🟩 gpu
      🟩 rtxa6000           Pass: 100%/12  | Total:  2h 11m | Avg: 10m 58s | Max: 21m 42s
    🟩 jobs
      🟩 Build cuda.cccl    Pass: 100%/2   | Total:  7m 51s | Avg:  3m 55s | Max:  4m 16s
      🟩 Build cuda.cooperative Pass: 100%/2   | Total: 12m 48s | Avg:  6m 24s | Max:  8m 11s
      🟩 Build cuda.parallel Pass: 100%/2   | Total: 19m 54s | Avg:  9m 57s | Max: 10m 49s
      🟩 Test cuda.cccl     Pass: 100%/2   | Total: 13m 50s | Avg:  6m 55s | Max:  7m 13s
      🟩 Test cuda.cooperative Pass: 100%/2   | Total: 41m 31s | Avg: 20m 45s | Max: 21m 42s
      🟩 Test cuda.parallel Pass: 100%/2   | Total: 35m 50s | Avg: 17m 55s | Max: 19m 40s
    🟩 py_version
      🟩 3.10               Pass: 100%/6   | Total:  1h 04m | Avg: 10m 47s | Max: 21m 42s
      🟩 3.13               Pass: 100%/6   | Total:  1h 06m | Avg: 11m 09s | Max: 19m 49s
    
  • 🟩 cccl_c_parallel: Pass: 100%/2 | Total: 15m 00s | Avg: 7m 30s | Max: 12m 08s | Hits: 98%/328

    🟩 cpu
      🟩 amd64              Pass: 100%/2   | Total: 15m 00s | Avg:  7m 30s | Max: 12m 08s | Hits:  98%/328   
    🟩 ctk
      🟩 12.9               Pass: 100%/2   | Total: 15m 00s | Avg:  7m 30s | Max: 12m 08s | Hits:  98%/328   
    🟩 cudacxx
      🟩 nvcc12.9           Pass: 100%/2   | Total: 15m 00s | Avg:  7m 30s | Max: 12m 08s | Hits:  98%/328   
    🟩 cudacxx_family
      🟩 nvcc               Pass: 100%/2   | Total: 15m 00s | Avg:  7m 30s | Max: 12m 08s | Hits:  98%/328   
    🟩 cxx
      🟩 GCC13              Pass: 100%/2   | Total: 15m 00s | Avg:  7m 30s | Max: 12m 08s | Hits:  98%/328   
    🟩 cxx_family
      🟩 GCC                Pass: 100%/2   | Total: 15m 00s | Avg:  7m 30s | Max: 12m 08s | Hits:  98%/328   
    🟩 gpu
      🟩 rtx2080            Pass: 100%/2   | Total: 15m 00s | Avg:  7m 30s | Max: 12m 08s | Hits:  98%/328   
    🟩 jobs
      🟩 Build              Pass: 100%/1   | Total:  2m 52s | Avg:  2m 52s | Max:  2m 52s | Hits:  98%/164   
      🟩 Test               Pass: 100%/1   | Total: 12m 08s | Avg: 12m 08s | Max: 12m 08s | Hits:  98%/164   
    

👃 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: 14)

# Runner
7 linux-amd64-cpu16
6 linux-amd64-gpu-rtxa6000-latest-1
1 linux-amd64-gpu-rtx2080-latest-1

@NaderAlAwar NaderAlAwar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks @oleksandr-pavlyk!

@oleksandr-pavlyk
oleksandr-pavlyk merged commit 049c08c into NVIDIA:main May 30, 2025
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL May 30, 2025
@oleksandr-pavlyk
oleksandr-pavlyk deleted the speed-up-c-parallel-test-radix-sort branch May 30, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c For all items related to the CCCL-C library

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants