shared-library / driver API for GPUMD #1414
JaafarMehrez
started this conversation in
Ideas
Replies: 1 comment
-
|
Sounds a good plan. The major requirements for closely integration with GPUMD are:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I would like to discuss a possible direction for interfacing GPUMD with PySAGES before preparing any PR.
I have been exploring how GPUMD could be coupled to PySAGES for enhanced sampling workflows. My initial thought was to use the MDI route, and I have also worked on GPUMD-MDI support before #1379 . That approach is functionally viable, but for this particular use case PySAGES needs very frequent interaction with the MD engine, so I found that a more tightly coupled interface may be better suited in practice.
Based on that, I started prototyping a library-driven approach in which GPUMD can also be used as a shared library, while keeping PySAGES-specific logic outside GPUMD itself.
The general idea is:
In other words, my intention is not to make GPUMD depend on PySAGES directly, but rather to make it possible for external tools to drive GPUMD in a low-overhead way when needed.
In a local prototype, the GPUMD-side changes that seemed necessary were mainly:
The motivation is mainly to support tightly coupled enhanced-sampling workflows where the external method needs access to the system state and needs to feed forces back every step. For this type of workflow, an in-process interface appears to have lower overhead than a more general communication layer.
Before going further, I wanted to ask whether this general direction sounds acceptable from the GPUMD side.
In particular:
If this direction seems reasonable, I can then try to clean up the prototype changes and prepare them in a form that is
easier to review. I would be very interested in your thoughts on the design before turning it into a PR.
Beta Was this translation helpful? Give feedback.
All reactions