Skip to content

Rename BlockThreads to ThreadsPerBlock - #8835

Merged
miscco merged 4 commits into
NVIDIA:mainfrom
bernhardmgruber:rename_block_threads
May 6, 2026
Merged

miscco merged 4 commits into
NVIDIA:mainfrom
bernhardmgruber:rename_block_threads

Conversation

@bernhardmgruber

@bernhardmgruber bernhardmgruber commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

After some internal discussion in the context of how we name tuning policy members, we concluded that the term "threads per block" was more comprehensible than "block threads". This PR:

  • Renames exact matches of BlockThreads in template parameters to ThreadsPerBlock
  • The use of BlockThreads in a single static_assert
  • All matches of BlockThreads() functions in tuning policy wrappers (internal stuff in CUB for CCCL.C)
  • The remaining uses of BlockThreads

One commit each.

@copy-pr-bot

copy-pr-bot Bot commented May 5, 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 May 5, 2026
@bernhardmgruber
bernhardmgruber marked this pull request as ready for review May 5, 2026 22:42
@bernhardmgruber
bernhardmgruber requested review from a team as code owners May 5, 2026 22:42
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL May 5, 2026
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 2h 35m: Pass: 100%/379 | Total: 13d 04h | Max: 2h 05m | Hits: 72%/479025

See results here.

Comment thread cub/cub/agent/agent_batch_memcpy.cuh Resolved

/// Number of threads per block
static constexpr int BLOCK_THREADS = BlockThreads;
static constexpr int BLOCK_THREADS = ThreadsPerBlock;

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.

I assume this is going into a follow up

@miscco
miscco merged commit e688643 into NVIDIA:main May 6, 2026
403 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL May 6, 2026
@bernhardmgruber
bernhardmgruber deleted the rename_block_threads branch May 6, 2026 07:40
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.

4 participants