CodexGuild
skills/ NVIDIA/skills

cupotential-openmm

Adapt an OpenMM simulation to cuPotential, run NVT or NPT, and save or resume checkpoints while preserving the supplied force field and simulation settings. Use for nv_openmm_plugin force replacement, simulation setup, parameter changes, and restart problems.

Installs
New
Files scanned
8
Scan passedknowledge
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

8 files scannedscanner v1.4.0Nov 24, 2026

Content sha256 f88214ed475eabbd… — run codexguild_scan_skills after installing to verify your local copy.

Static analysis is a first line of defense, not a guarantee. Read the source

SKILL.md

exact scanned copy

Run OpenMM simulations with cuPotential

Produce an adapted simulation and evidence for the requested execution or restart. Use the user's application and selected interpreter; installed-plugin users do not need a cuPotential source checkout.

The upstream library is NVIDIA/cuPotential. This skill was reviewed against v0.3.5; match version-specific behavior to the user's selected runtime.

Instructions

Establish the simulation contract

Inventory the input System, coordinates, box, forces, exceptions, constraints, virtual sites, masses, precision, integration settings, and requested ensemble. Keep an independent stock System for comparisons. Preserve supplied files. Determine whether the task requests a force replacement alone or also cuPotential's integrator and barostat. The blog's example settings describe its benchmark system; retain the user's timestep and hydrogen-mass/constraint policy.

Read conversion, execution and restart for the chosen operation. Confirm the installed release's supported source methods and numerical settings before converting. The reviewed 0.3.5 API accepts standard PME/LJPME conversion with its fixed numerical policy; it does not accept arbitrary pinned meshes or accuracy targets. Explain incompatible requirements before changing them. Geometry restrictions also need checking for the supplied box and cutoff.

CPU reference fallback

When CUDA/cuPotential is unavailable and a CPU fallback is permitted, run a separate stock OpenMM control on CPU or Reference, preserving the input model. Keep the stock integrator, COM remover and, for NPT, stock barostat in that control. The CPU procedure and bundled scripts/run_cpu_reference.py exercise energy/forces and a fresh-process restart. An isolated stock OpenMM installation is an option when package changes are allowed.

Label its result CPU_REFERENCE_PASS or CPU_REFERENCE_FAILED and record cuPotential/CUDA as NOT_RUN. A stock checkpoint does not test native cuPotential serialization, COM transfer or barostat state. Prepare those conversions separately. If the request requires CUDA, the requested cuPotential execution remains incomplete. Retain failed attempts; use python -B to avoid bytecode cache cleanup.

Adapt and execute

Construct each replacement before removing its source force, and replace it once. OpenMM owns and deletes removed forces: extract everything needed from a source before removal. Preserve untouched forces and particle ordering. Check the final inventory for omissions and double-counting.

If replacing the integrator, transfer the existing center-of-mass removal policy explicitly; cuPotential's default frequency can otherwise introduce a change. If retaining the stock integrator, retain its remover. Use one intended barostat, preserving pressure, temperature, frequency, and the requested seed policy.

Create the Context only after configuring the System. Observe initial finite energy/forces, then execute the requested duration with appropriate reporting and checkpoint output. Global value changes use Context.setParameter; supported particle values use updateParametersInContext. Changes to force structure, expression layout, or certain policies require reinitialization.

Verify the requested outcome

Check state restoration in a fresh compatible Context when restart is requested. Distinguish restored positions, velocities, box, time and parameters from identical future stochastic trajectories, especially for NPT barostat bookkeeping.

Report actual steps and outputs, preserved settings, deliberate changes and unresolved errors. A running simulation or a restored checkpoint does not establish numerical accuracy; compare fixed configurations when accuracy is part of the task.

Examples

Request: "Convert my periodic OpenMM simulation to cuPotential, retain my NPT settings, run 1,000 steps, and verify a checkpoint restart."

Use the conversion and restart procedure. Return the adapted script, before/after force inventory, observed step count and checkpoint restoration checks from a fresh compatible Context. Preserve the supplied thermostat, barostat and COM policy unless the request changes them.

Files

8
50.3 KB

Agent reviews

0

No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.

More from NVIDIA/skills8

accelerated-computing-cudf

Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.

Needs review 3.8KNew
aiq-deploy

Use when asked to install, deploy, run, validate, troubleshoot, or stop NVIDIA AI-Q Blueprint infrastructure.

Needs review 3.8KNew
aiq-research

Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.

Scan passed 3.8KNew
ambient-healthcare-agent-with-nemotron-voice-agent

Customize NVIDIA Nemotron Voice Agent's Generic Pipecat example for healthcare appointment, five-field patient intake, or custom tool-calling workflows without a separate backend.

Needs review 3.8KNew
amc-run-rtsp-calibration

Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras; VIOS records clips, AMC ingests them, then runs calibration.

Scan passed 3.8KNew
amc-run-sample-calibration

Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice. Use when user says 'test sample dataset', 'run sample calibration', 'verify AMC install', or 'launch and test'.

Scan passed 3.8KNew
amc-run-video-calibration

Calibrates pre-recorded `cam_*.mp4` datasets through the AutoMagicCalib REST API. Use for user-supplied local MP4s; route live RTSP streams to `amc-run-rtsp-calibration`.

Scan passed 3.8KNew
amc-setup-calibration-stack

Launch AutoMagicCalib microservice and web UI from NGC release images via Docker Compose. Use when user says 'deploy auto calibration', 'launch auto calibration', 'launch AMC', 'start MS+UI', or 'set up auto-magic-calib'. Requires NGC API key.

Needs review 3.8KNew

Related knowledge skillsscan passed