Skip to content

performance-enum-size - #8304

Closed
Jacobfaib wants to merge 3 commits into
NVIDIA:mainfrom
Jacobfaib:jacobf/2026-04-07/performance-enum-size
Closed

Jacobfaib wants to merge 3 commits into
NVIDIA:mainfrom
Jacobfaib:jacobf/2026-04-07/performance-enum-size

Conversation

@Jacobfaib

Copy link
Copy Markdown
Contributor

Description

closes

Checklist

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

@Jacobfaib Jacobfaib self-assigned this Apr 7, 2026
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Apr 7, 2026
@copy-pr-bot

copy-pr-bot Bot commented Apr 7, 2026

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 Apr 7, 2026
@Jacobfaib
Jacobfaib force-pushed the jacobf/2026-04-07/performance-enum-size branch from 555f6d0 to c909a59 Compare April 7, 2026 15:22
@Jacobfaib
Jacobfaib marked this pull request as ready for review April 7, 2026 15:29
@Jacobfaib
Jacobfaib requested review from a team as code owners April 7, 2026 15:29
@Jacobfaib
Jacobfaib requested a review from jrhemstad April 7, 2026 15:29
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Apr 7, 2026
@github-project-automation github-project-automation Bot moved this from In Review to In Progress in CCCL Apr 7, 2026
@github-actions

This comment has been minimized.

@Jacobfaib
Jacobfaib requested a review from fbusato April 7, 2026 17:28
@github-actions

github-actions Bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

😬 CI Workflow Results

🟥 Finished in 39m 55s: Pass: 5%/391 | Total: 1d 22h | Max: 30m 26s | Hits: 93%/27163

See results here.

/**
* Enumerations of tile status
*/
enum ScanTileStatus

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

question: this is a rare case when we use enum at runtime. Does this affect codegen in any way?

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.

It would affect codegen in the same way that switching a variable from int to uint8_t will. Basically, for all of these underyling type changes, it makes all of these enums smaller (clang-tidy will always suggest the smallest possible type, given the enum values1).

Footnotes

  1. This is not strictly true. If you have what looks like a flag enum (i.e. one whose members you intend to be XOR-ing), then clang-tidy will compute the largest possible value you can make and suggest a type capable of holding that. ↩

@Jacobfaib

Jacobfaib commented Apr 8, 2026 •

Copy link
Copy Markdown
Contributor Author

@gevtushenko @fbusato @miscco @bernhardmgruber @davebayer given how controversial this check is, the overhead of needing to undo all the CUB changes (and likely others), and not wanting to give myself carpel tunnel I think I will just disable this check entirely for now.

We could revisit it come CCCL 4.0, but in the interest of moving #8305 and other PRs forward I think it's probably for the best to let sleeping dogs lie for this one. Any objections? Otherwise I will close this PR.

@Jacobfaib Jacobfaib closed this Apr 9, 2026
@Jacobfaib
Jacobfaib deleted the jacobf/2026-04-07/performance-enum-size branch April 9, 2026 09:45
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