-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor (csrc): Restructure C++ code organization to facilitate addi…
…ng new kernels (#169) 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`. 1. Placing the host's kernel launch function in `x.cc`, where `x` is the operator's name. 1. Implementing CUDA kernels in `x.cuh`.
- Loading branch information
Showing
12 changed files
with
976 additions
and
909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"yapf.args":["--style={based_on_s'tyle: google, column_limit: 80, indent_width: 4}"] | ||
"yapf.args": [ | ||
"--style={based_on_s'tyle: google, column_limit: 80, indent_width: 4}" | ||
], | ||
"files.associations": { | ||
"optional": "cpp" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.