Skip to content

Move enums from typing -> enums#2037

Closed
mdboom wants to merge 1 commit intoNVIDIA:mainfrom
mdboom:move-enums
Closed

Move enums from typing -> enums#2037
mdboom wants to merge 1 commit intoNVIDIA:mainfrom
mdboom:move-enums

Conversation

@mdboom
Copy link
Copy Markdown
Contributor

@mdboom mdboom commented May 6, 2026

As discussed offline, we could instead put all our enums into their own module, rather than in typing.

@mdboom mdboom added P0 High priority - Must do! cuda.core Everything related to the cuda.core module breaking Breaking changes are introduced labels May 6, 2026
@mdboom mdboom self-assigned this May 6, 2026
@leofang
Copy link
Copy Markdown
Member

leofang commented May 6, 2026

I don't like it 🥲

@leofang
Copy link
Copy Markdown
Member

leofang commented May 6, 2026

I prefer cuda.core.typing for all-in-one dumpster, including enums.

By the original design this is a non-issue. Instead of allowing passing cuda.core.enum.AddressingMode.HMM we would have limited to only passing "HMM" (a str), and then we would have added cuda.core.typing.AddressingModeType = Literal["HMM", "ATS"]. So by this argument they belong to typing too, not enum. Enum is IMHO an artificial construct and implementation detail.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

@mdboom mdboom closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking changes are introduced cuda.core Everything related to the cuda.core module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants