Skip to content

Commit

Permalink
[doc] fix op_builder/README.md (hpcaitech#3597)
Browse files Browse the repository at this point in the history
Optimization Code
change "requries" to "requires"
  • Loading branch information
digger-yu authored Apr 19, 2023
1 parent 12eff9e commit 7570d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op_builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Method 2 is good because it allows the user to only build the kernel they actual
## PyTorch Extensions in Colossal-AI

The project [DeepSpeed](https://github.com/microsoft/DeepSpeed) has proposed a [solution](https://github.com/microsoft/DeepSpeed/tree/master/op_builder) to support kernel-build during either installation or runtime.
We have adapted from DeepSpeed's solution to build extensions. The extension build requries two main functions from PyTorch:
We have adapted from DeepSpeed's solution to build extensions. The extension build requires two main functions from PyTorch:

1. `torch.utils.cpp_extension.CUDAExtension`: used to build extensions in `setup.py` during `pip install`.
2. `torch.utils.cpp_extension.load`: used to build and load extension during runtime
Expand Down

0 comments on commit 7570d9a

Please sign in to comment.