fix(lammps): share Kokkos runtime with LAMMPS - #5989
Conversation
Backport conda-forge/deepmd-kit-feedstock patch 0005 at d02138263b0b30629fe28c68c8bcecc2b8644513. Agent: ChatGPT Model: GPT-5.6 Sol
for more information, see https://pre-commit.ci
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe Kokkos plugin CMake configuration collects interface properties from available umbrella and component targets. It applies those properties to the plugin and preserves optional ChangesKokkos plugin configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized build-configuration change is merge-ready after normal checks and review; no actionable merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5989 +/- ##
==========================================
- Coverage 79.10% 78.84% -0.26%
==========================================
Files 1105 1105
Lines 130981 130981
Branches 4771 4771
==========================================
- Hits 103609 103273 -336
- Misses 25686 26024 +338
+ Partials 1686 1684 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collect non-link interface properties from the Kokkos umbrella and component targets so LAMMPS build-tree packages do not inject NOTFOUND include paths. Coding-Agent: Codex Codex-Version: codex-cli 0.149.0 Model: gpt-5.6-sol Reasoning-Effort: xhigh
|
During the requested Kokkos-enabled plugin validation, I found and fixed an additional build-tree compatibility issue in Validated against
Coding agent: Codex |
Summary
Backport
0005-share-lammps-kokkos-runtime.patchfromconda-forge/deepmd-kit-feedstock@d02138263b0b30629fe28c68c8bcecc2b8644513.A runtime LAMMPS plugin should reuse the Kokkos runtime already linked into
liblammps. LinkingKokkos::kokkosagain can create a second CUDA/Kokkos runtime instance and corrupt shutdown state when the plugin unloads.Import the Kokkos include paths, compile definitions/options/features, and link options needed for device compilation while leaving runtime Kokkos symbols to
liblammps; retain the CUDA andLIBDLhelper targets when available.Validation
Agent: ChatGPT
Model: GPT-5.6 Sol
Summary by CodeRabbit