8000 GitHub - hieplcc/extension-cpp: C++ extensions in PyTorch · GitHub
[go: up one dir, main page]

Skip to content

hieplcc/extension-cpp

 
 

Repository files navigation

C+ 6C1F +/CUDA Extensions in PyTorch

An example of writing a C++/CUDA extension for PyTorch. See here for the accompanying tutorial. This repo demonstrates how to write an example extension_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

Authors

Peter Goldsborough, Richard Zou

About

C++ extensions in PyTorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 48.7%
  • C++ 32.4%
  • CMake 11.3%
  • Cuda 7.6%
0