Skip to content

refactor (csrc): Restructure C++ code organization to facilitate adding new kernels#169

Merged
haruhi55 merged 4 commits intomicrosoft:mainfrom
lcy-seso:restructure
Jan 20, 2025
Merged

refactor (csrc): Restructure C++ code organization to facilitate adding new kernels#169
haruhi55 merged 4 commits intomicrosoft:mainfrom
lcy-seso:restructure

Conversation

@lcy-seso
Copy link
Copy Markdown
Contributor

@lcy-seso lcy-seso commented Jan 20, 2025

This PR does not change any logic or functionality in the main branch. It restructures the existing C++ code organization to facilitate the addition of new kernels in subsequent PRs.

In general, each customized CUDA kernel involves modifying the following three files at the backend:

  1. Registering Python bindings and adding declarations in ops.cc.
  2. Placing the host's kernel launch function in x.cc, where x is the operator's name.
  3. Implementing CUDA kernels in x.cuh.

@haruhi55 haruhi55 requested a review from YangWang92 January 20, 2025 12:44
@haruhi55 haruhi55 merged commit 676964f into microsoft:main Jan 20, 2025
@lcy-seso lcy-seso deleted the restructure branch January 20, 2025 12:53
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.

2 participants