Skip to content

Optimize the GPU pairlist of the coordnum kernel - #955

Merged
HanatoK merged 11 commits into
Colvars:masterfrom
HanatoK:opt_coordnum_gpu_pairlist
Sep 4, 2026
Merged

Optimize the GPU pairlist of the coordnum kernel#955
HanatoK merged 11 commits into
Colvars:masterfrom
HanatoK:opt_coordnum_gpu_pairlist

Conversation

@HanatoK

@HanatoK HanatoK commented Aug 18, 2026

Copy link
Copy Markdown
Member

This PR follows the same strategy described in #954 and changes the GPU pairlist of coordnum from an array of bool to an array of bit fields. This PR depends on #940 and #954.

@HanatoK HanatoK self-assigned this Aug 18, 2026
@HanatoK
HanatoK force-pushed the opt_coordnum_gpu_pairlist branch 2 times, most recently from 7e2a400 to 8aab25b Compare September 3, 2026 20:13
@HanatoK
HanatoK force-pushed the opt_coordnum_gpu_pairlist branch from 8aab25b to 3b94b89 Compare September 3, 2026 20:43

Copilot AI 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.

🟡 Changes recommended

Center-only pairlists can dereference a null buffer, and pairlist preparation failures are not handled.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Optimizes GPU coordNum pairlists using tile-based bit masks, reducing memory use and enabling empty-tile skipping.

Changes:

  • Adds 32/64-lane tile pair masks.
  • Refactors GPU pairlist allocation and ownership.
  • Removes obsolete self-coordination debug code.
File summaries
File Description
src/cuda/colvarcomp_coordnums_kernel.h Updates the GPU kernel interface for tile masks.
src/cuda/colvarcomp_coordnums_kernel.cu Implements tile-mask generation and reuse.
src/colvarcomp_coordnums.cpp Manages tile-pairlist allocation and ownership.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 4
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/colvarcomp_coordnums.cpp Outdated
Comment thread src/colvarcomp_coordnums.cpp Outdated
Comment thread src/colvarcomp_coordnums.cpp Outdated
Comment thread src/cuda/colvarcomp_coordnums_kernel.cu
@HanatoK
HanatoK merged commit 2fe4523 into Colvars:master Sep 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants