Skip to content

Use vector width over load size in vectorized transform - #6066

Merged
bernhardmgruber merged 6 commits into
NVIDIA:mainfrom
bernhardmgruber:ref_vector_transform
Oct 13, 2025
Merged

bernhardmgruber merged 6 commits into
NVIDIA:mainfrom
bernhardmgruber:ref_vector_transform

Conversation

@bernhardmgruber

@bernhardmgruber bernhardmgruber commented Sep 29, 2025 •

Copy link
Copy Markdown
Contributor

A100:

# fill

## [0] NVIDIA A100-PCIE-40GB

|  T{ct}  |  Elements{io}  |   Ref Time |   Ref Noise |   Cmp Time |   Cmp Noise |      Diff |   %Diff |  Status  |
|---------|----------------|------------|-------------|------------|-------------|-----------|---------|----------|
|   I8    |      2^20      |   5.552 us |       9.33% |   5.517 us |      11.39% | -0.035 us |  -0.63% |   SAME   |
|   I8    |      2^24      |  15.868 us |       6.13% |  15.670 us |       3.36% | -0.198 us |  -1.25% |   SAME   |
|   I8    |      2^28      | 177.636 us |       0.36% | 177.521 us |       0.31% | -0.115 us |  -0.06% |   SAME   |
|   I16   |      2^16      |   5.137 us |      19.50% |   5.045 us |      10.39% | -0.092 us |  -1.80% |   SAME   |
|   I16   |      2^20      |   6.107 us |      13.55% |   6.033 us |      13.13% | -0.074 us |  -1.21% |   SAME   |
|   I16   |      2^24      |  27.214 us |       2.29% |  26.993 us |       2.30% | -0.220 us |  -0.81% |   SAME   |
|   I16   |      2^28      | 350.208 us |       0.21% | 350.110 us |       0.17% | -0.098 us |  -0.03% |   SAME   |
|   I32   |      2^16      |   5.330 us |      16.41% |   5.312 us |      16.96% | -0.018 us |  -0.33% |   SAME   |
|   I32   |      2^20      |   7.483 us |       7.02% |   7.496 us |       6.65% |  0.013 us |   0.17% |   SAME   |
|   I32   |      2^24      |  48.086 us |       1.92% |  48.677 us |       1.25% |  0.590 us |   1.23% |   SAME   |
|   I32   |      2^28      | 695.534 us |       0.09% | 695.686 us |       0.10% |  0.152 us |   0.02% |   SAME   |
|   I64   |      2^16      |   5.793 us |       8.98% |   5.755 us |       9.01% | -0.038 us |  -0.65% |   SAME   |
|   I64   |      2^20      |  10.293 us |       7.10% |  10.565 us |       5.08% |  0.272 us |   2.64% |   SAME   |
|   I64   |      2^24      |  91.276 us |       0.93% |  91.903 us |       1.04% |  0.627 us |   0.69% |   SAME   |
|   I64   |      2^28      |   1.386 ms |       0.07% |   1.388 ms |       0.08% |  1.756 us |   0.13% |   SLOW   |

H200 similar to A100 (accidentially deleted the benchmark :S)

B200:

# fill

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref Time |   Ref Noise |   Cmp Time |   Cmp Noise |      Diff |   %Diff |  Status  |
|---------|----------------|------------|-------------|------------|-------------|-----------|---------|----------|
|   I8    |      2^16      |   4.024 us |      10.01% |   4.085 us |      11.73% |  0.061 us |   1.51% |   SAME   |
|   I8    |      2^20      |   4.488 us |      15.54% |   4.473 us |      15.08% | -0.015 us |  -0.34% |   SAME   |
|   I8    |      2^24      |   6.516 us |      11.47% |   6.521 us |      11.34% |  0.005 us |   0.07% |   SAME   |
|   I8    |      2^28      |  40.051 us |       1.99% |  40.027 us |       2.12% | -0.025 us |  -0.06% |   SAME   |
|   I16   |      2^16      |   4.268 us |      14.81% |   4.412 us |      16.54% |  0.144 us |   3.37% |   SAME   |
|   I16   |      2^20      |   4.729 us |      15.48% |   4.660 us |      15.03% | -0.070 us |  -1.47% |   SAME   |
|   I16   |      2^24      |   9.002 us |       8.53% |   8.925 us |       8.44% | -0.077 us |  -0.85% |   SAME   |
|   I16   |      2^28      |  75.528 us |       0.74% |  75.469 us |       0.87% | -0.059 us |  -0.08% |   SAME   |
|   I32   |      2^16      |   4.334 us |      14.99% |   4.331 us |      15.41% | -0.004 us |  -0.08% |   SAME   |
|   I32   |      2^20      |   5.367 us |      14.28% |   5.502 us |      12.69% |  0.135 us |   2.52% |   SAME   |
|   I32   |      2^24      |  13.517 us |       5.48% |  13.562 us |       5.58% |  0.045 us |   0.33% |   SAME   |
|   I32   |      2^28      | 145.408 us |       0.38% | 145.509 us |       0.44% |  0.101 us |   0.07% |   SAME   |
|   I64   |      2^16      |   4.402 us |      15.73% |   4.462 us |      15.88% |  0.061 us |   1.38% |   SAME   |
|   I64   |      2^20      |   5.815 us |       6.05% |   5.850 us |       6.01% |  0.035 us |   0.60% |   SAME   |
|   I64   |      2^24      |  22.212 us |       1.88% |  22.492 us |       2.84% |  0.280 us |   1.26% |   SAME   |
|   I64   |      2^28      | 286.699 us |       0.33% | 286.997 us |       0.40% |  0.298 us |   0.10% |   SAME   |

@copy-pr-bot

copy-pr-bot Bot commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Sep 29, 2025
@bernhardmgruber

Copy link
Copy Markdown
Contributor Author

/ok to test bd2c436

@github-actions

This comment has been minimized.

@bernhardmgruber
bernhardmgruber force-pushed the ref_vector_transform branch 3 times, most recently from badb318 to 6978e33 Compare September 30, 2025 21:08
@bernhardmgruber
bernhardmgruber marked this pull request as ready for review September 30, 2025 21:12
@bernhardmgruber
bernhardmgruber requested review from a team as code owners September 30, 2025 21:12
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Sep 30, 2025
@github-actions

This comment has been minimized.

@miscco miscco 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.

The cub part looks fine

@github-actions

This comment has been minimized.


struct policy300 : ChainedPolicy<300, policy300, policy300>
{
static constexpr int min_bif = arch_to_min_bytes_in_flight(300);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Important: I think we need to leave min_bif in the tuning policy, because it is a tuned value. However, the original values, in my understanding, were obtained by @ahendriksen by experimentation. I also don't want to tune this value for various combinations of input parameters, it should be a single value per GPU architecture.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 4h 11m: Pass: 100%/185 | Total: 6d 19h | Max: 4h 11m | Hits: 74%/190922

See results here.

@bernhardmgruber
bernhardmgruber merged commit 7267dc6 into NVIDIA:main Oct 13, 2025
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Oct 13, 2025
@bernhardmgruber
bernhardmgruber deleted the ref_vector_transform branch October 13, 2025 08:50
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.

3 participants