Skip to content

Conversation

@mikaylagawarecki
Copy link

@mikaylagawarecki mikaylagawarecki commented Dec 15, 2025

Accompanying tutorials change pytorch/tutorials#3701


echo '::group::Install extension-cpp'
python setup.py develop
pip install -e . --no-build-isolation
Copy link
Author

@mikaylagawarecki mikaylagawarecki Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was needed to get CI to run properly.

Otherwise, CI was installing the nightly but using torch 2.7 to build the extension

runner: linux.g5.4xlarge.nvidia.gpu
gpu-arch-type: cuda
gpu-arch-version: "12.4"
gpu-arch-version: "12.9"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we no longer have cu nightlies for 12.4

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol CI for this repo is so outdated

@mikaylagawarecki mikaylagawarecki force-pushed the stable branch 3 times, most recently from 07ef7e7 to 6f2afea Compare December 16, 2025 21:26
Comment on lines +1 to +4
# C++/CUDA Extensions in PyTorch with LibTorch Stable ABI

An example of writing a C++/CUDA extension for PyTorch using the [LibTorch Stable ABI](https://pytorch.org/docs/main/notes/libtorch_stable_abi.html).
See [here](https://pytorch.org/tutorials/advanced/cpp_custom_ops.html) for the accompanying tutorial.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we pushing for everyone to use libtorch stable abi? Or do we expect people will want to use the regular api? How do people select between the two?

IMO if we're not ready for literally everyone to move to libtorch stable abi right now, we should provide multiple examples. One for libtorch stable, and one without.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants