xnn.ffnn.models.classical_step.ClassicalStepper#

class xnn.ffnn.models.classical_step.ClassicalStepper(model, skin=1.0, capture=True, warmup=2)[source]#

Bases: object

Energy and forces of one structure along a trajectory from the kernels of a classical force field.

Parameters:
  • model (nn.Module) – An OPLS, Amber, Charmm or Dreiding model on a CUDA device (or a wrapper with a model attribute), in evaluation mode with no trained parameter.

  • skin (float, optional) – Margin of the neighbor list beyond the model’s cutoff in Angstrom; by default 1.0.

  • capture (bool, optional) – Replay the steps as a CUDA graph after warmup plain steps; by default True.

  • warmup (int, optional) – Plain steps before the graph is recorded (the kernels are compiled in the first); by default 2.

Variables:
  • rebuilds (int) – Neighbor lists built.

  • refills (int) – Of those, the lists copied into the buffers of the recorded graph (no new recording).

  • replays (int) – Steps replayed from the CUDA graph.