Commit b32f74c
fix(lammps): register Kokkos plugin styles (deepmodeling#5988)
## Summary
Backport `0004-register-lammps-kokkos-plugin-styles.patch` from
`conda-forge/deepmd-kit-feedstock@d02138263b0b30629fe28c68c8bcecc2b8644513`.
Runtime LAMMPS plugins do not consume the `PairStyle` declarations used
by the built-in package machinery, so explicitly register:
- `deepmd/kk`
- `deepmd/kk/device`
- `deepmd/kk/host`
- `dpa4spin/kk`
- `dpa4spin/kk/device`
- `dpa4spin/kk/host`
The newly registered Kokkos plugin styles are attributed to **Tiancheng
Li** via `plugin.author`.
## Validation
- Single-file change derived from the feedstock patch, with only the
requested author attribution adjusted.
- Existing non-Kokkos plugin author fields are unchanged.
- Split from deepmodeling#5985 so plugin registration can be reviewed independently.
- Full build/runtime validation is left to upstream CI.
Agent: ChatGPT
Model: GPT-5.6 Sol
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added Kokkos-enabled support for DeepMD and DPA-4Spin pair styles.
- Added host and device runtime variants for improved compatibility
across supported execution environments.
- Registered additional pair-style aliases so these implementations can
be selected through standard runtime configuration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Dependencies and follow-up validation
Merge order: corrected deepmodeling#5987, then deepmodeling#5989, then this PR. The Kokkos
registrations in this PR depend on the compatibility boundary from deepmodeling#5987
and the shared-runtime linkage from deepmodeling#5989.
Validated the combined changes with `DEEPMD_LAMMPS_KOKKOS=ON`,
`PKG_PLUGIN=ON`, and `PKG_KOKKOS=ON` against `stable_22Jul2025_update5`,
`patch_10Sep2025`, and `patch_20Aug2026`. In every build, `plugin load`
succeeded and `plugin list` reported all six aliases: `deepmd/kk`,
`deepmd/kk/device`, `deepmd/kk/host`, `dpa4spin/kk`,
`dpa4spin/kk/device`, and `dpa4spin/kk/host`.
Coding agent: Codex
Codex version: codex-cli 0.149.0
Model: gpt-5.6-sol
Reasoning effort: xhigh
Co-authored-by: OutisLi <137472077+OutisLi@users.noreply.github.com>1 parent 2bb3eed commit b32f74c
1 file changed
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
22 | 43 | | |
23 | 44 | | |
24 | 45 | | |
| |||
48 | 69 | | |
49 | 70 | | |
50 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
51 | 103 | | |
52 | 104 | | |
53 | 105 | | |
| |||
0 commit comments