Skip to content

Commit a0b60ad

Browse files
authored
set gpu_preprocessing=True in FeNNix (#153)
1 parent d50a6d5 commit a0b60ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openmmml/models/fennixpotential.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ def __call__(self, state):
176176
# Invoke the model to get the energy and forces.
177177
with jax.enable_x64(self.useDouble):
178178
if self.periodic:
179-
modelOutputs = self.model.energy_and_forces(coordinates=positions, cells=cells, **self.inputs)
179+
modelOutputs = self.model.energy_and_forces(coordinates=positions, cells=cells, gpu_preprocessing=True, **self.inputs)
180180
else:
181-
modelOutputs = self.model.energy_and_forces(coordinates=positions, **self.inputs)
181+
modelOutputs = self.model.energy_and_forces(coordinates=positions, gpu_preprocessing=True, **self.inputs)
182182
jaxEnergy, jaxForces = modelOutputs[:2]
183183
energy = jaxEnergy.item() * self.energyScale
184184
jaxForces *= self.forceScale

0 commit comments

Comments
 (0)