# extension-cpp **Repository Path**: mirrors_pytorch/extension-cpp ## Basic Information - **Project Name**: extension-cpp - **Description**: C++ extensions in PyTorch - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2025-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # C++/CUDA Extensions in PyTorch An example of writing a C++/CUDA extension for PyTorch. See [here](https://pytorch.org/tutorials/advanced/cpp_custom_ops.html) 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](https://github.com/goldsborough), [Richard Zou](https://github.com/zou3519)