Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove compat.h#1942

Merged
crcrpar merged 3 commits into
masterfrom
remove_compat_header
Nov 8, 2025
Merged

Remove compat.h#1942
crcrpar merged 3 commits into
masterfrom
remove_compat_header

Conversation

@crcrpar
Copy link
Copy Markdown
Collaborator

@crcrpar crcrpar commented Nov 7, 2025

As per title, this PR removes compat.h and replaces DATA_PTR with data_ptr.

@crcrpar crcrpar requested a review from Copilot November 7, 2025 05:48

This comment was marked as outdated.

@crcrpar crcrpar force-pushed the remove_compat_header branch from b471905 to 5114a8c Compare November 7, 2025 06:28
@crcrpar crcrpar requested a review from Copilot November 7, 2025 06:30

This comment was marked as outdated.

@crcrpar
Copy link
Copy Markdown
Collaborator Author

crcrpar commented Nov 7, 2025

@copilot could you replace DATA_PTR with data_ptr, if you still find any?

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 7, 2025

@crcrpar I've opened a new pull request, #1943, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Replace remaining DATA_PTR with data_ptr

Co-authored-by: crcrpar <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: crcrpar <[email protected]>
@crcrpar
Copy link
Copy Markdown
Collaborator Author

crcrpar commented Nov 7, 2025

@copilot open a new pull request to apply changes based on the comments in this thread and #1942 (comment)

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 7, 2025

@crcrpar I've opened a new pull request, #1944, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Fix spacing in ternary operators in csrc/welford.cu

Co-authored-by: crcrpar <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: crcrpar <[email protected]>
@crcrpar crcrpar requested a review from Copilot November 7, 2025 07:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread csrc/welford.cu
mean.data_ptr<accscalar_t>(),
inv_std.data_ptr<accscalar_t>(),
weight.has_value() ? weight.value().data_ptr<accscalar_t>() : NULL,
shift.has_value() ? shift.value().data_ptr<accscalar_t>() : NULL,
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

Missing space before NULL after the ternary operator colon. For consistency with the rest of the codebase, there should be a space: : NULL instead of :NULL.

Copilot uses AI. Check for mistakes.
Comment thread csrc/welford.cu
mean.data_ptr<accscalar_t>(),
inv_std.data_ptr<accscalar_t>(),
weight.has_value() ? weight.value().data_ptr<scalar_t_0>() : NULL,
shift.has_value() ? shift.value().data_ptr<scalar_t_0>() : NULL,
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

Missing space before NULL after the ternary operator colon. For consistency with the rest of the codebase, there should be a space: : NULL instead of :NULL.

Copilot uses AI. Check for mistakes.
@crcrpar
Copy link
Copy Markdown
Collaborator Author

crcrpar commented Nov 7, 2025

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 7, 2025

@crcrpar I've opened a new pull request, #1947, to work on those changes. Once the pull request is ready, I'll request review from you.

@crcrpar crcrpar merged commit e900daa into master Nov 8, 2025
6 checks passed
@crcrpar crcrpar deleted the remove_compat_header branch November 8, 2025 20:12
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