- Notifications
You must be signed in to change notification settings - Fork239
C++ extensions in PyTorch
NotificationsYou must be signed in to change notification settings
pytorch/extension-cpp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An example of writing a C++/CUDA extension for PyTorch. Seehere for the accompanying tutorial.This repo demonstrates how to write an exampleextension_cpp.ops.mymuladd
custom op that has both custom CPU and CUDA kernels.
The examples in this repo work with PyTorch 2.4+.
To build:
pip install --no-build-isolation -e .
To test:
python test/test_extension.py
About
C++ extensions in PyTorch
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.