deepmodeling / deepmodeling/deepmd-kit

[Feature Request] Switch to LibTorch Stable ABI

Open
#4,896 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
2k
Forks
649
Avg merge
6d 18h
Merged PRs (30d)
15

Description

### Summary

Switch to LibTorch Stable ABI in the `libdeepmd_op` and `libdeepmd_cc` libraries.

The LibTorch Stable ABI is based on headers files driven by the C API (which has a similar design like DeePMD-kit), thus it can promise the ABI-stability.

### Detailed Description

More information:
- https://pytorch.org/blog/pytorch-2-8/
- https://docs.pytorch.org/docs/stable/notes/libtorch_stable_abi.html
- https://github.com/pytorch/pytorch/tree/main/torch/csrc/stable

### Further Information, Files, and Links

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.