Skip to content

Rename the class/function from compare to less in operator kernels. - #53

Merged
hzhangxyz merged 1 commit into
mainfrom
dev/rename-to-less
Jun 26, 2025
Merged

Rename the class/function from compare to less in operator kernels.#53
hzhangxyz merged 1 commit into
mainfrom
dev/rename-to-less

Conversation

@hzhangxyz

Copy link
Copy Markdown
Member

Description

Checklist:

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors operator kernels by renaming the variable and template parameter from "compare" to "less" for improved clarity and consistency.

  • Renamed variables from "compare" to "less" in binary search and heap insertion logic
  • Updated template parameter names to reflect this change in both CUDA and CPU implementations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
qmb/_hamiltonian_cuda.cu Replaced "compare" with "less" and updated template names
qmb/_hamiltonian_cpu.cpp Replaced "compare" with "less" and updated template names

@msg-bq msg-bq left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

image

看起来数量是对的,两个文件,16+26-2(出现在同一行)

@hzhangxyz

hzhangxyz commented Jun 26, 2025 via email

Copy link
Copy Markdown
Member Author

@hzhangxyz
hzhangxyz merged commit 0d6f12d into main Jun 26, 2025
4 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants