Skip to content

Replace and deprecate compute_capability::major() and compute_capability::minor() - #7118

Merged
davebayer merged 4 commits into
NVIDIA:mainfrom
davebayer:fix_cc_mem_fns
Jan 8, 2026
Merged

davebayer merged 4 commits into
NVIDIA:mainfrom
davebayer:fix_cc_mem_fns

Conversation

@davebayer

Copy link
Copy Markdown
Contributor

major(...) and minor(...) are macros defined in <sys/sysmacros.h> (which I didn't know back then), so it's better to save everyone's time on investigating why is the user's code failing to compile.

This PR deprecates compute_capability::major() and compute_capability::minor() and provides compute_capability::major_cap() and compute_capability::minor_cap() member functions instead.

@davebayer
davebayer requested a review from a team as a code owner January 8, 2026 08:08
@davebayer
davebayer requested a review from ericniebler January 8, 2026 08:08
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jan 8, 2026
@davebayer davebayer self-assigned this Jan 8, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Jan 8, 2026

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

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 3h 52m: Pass: 100%/84 | Total: 1d 14h | Max: 1h 39m | Hits: 93%/197645

See results here.

@davebayer
davebayer merged commit ca73d34 into NVIDIA:main Jan 8, 2026
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Jan 8, 2026
@davebayer
davebayer deleted the fix_cc_mem_fns branch January 8, 2026 23:26
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

github-actions Bot pushed a commit that referenced this pull request Jan 8, 2026
wmaxey pushed a commit that referenced this pull request Jan 9, 2026
…bility::minor()` (#7118) (#7143)

(cherry picked from commit ca73d34)

Co-authored-by: David Bayer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants