I was trying to run a very simple simulation including 256 water molecules in a PBC box using .prmtop and .inpcrd files by only changing the simulateAmber.py file in the example folder. It worked fine under CPU platform in every machine I use, but it showed error when I was trying to run on OpenCL platform on my windows local desktop while it ran successfully in my windows laptop. Below is the error message.
Error Message:
The error happened at the same step in the simulation every time. I had tried to changed different parameters and it only affect the step that the error occurred. I have also tried 1000 water molecules in a PBC box using .prmtop and .inpcrd file also. It has the same problem as when simulating 256 water molecules case when I used the windows local desktop in office. I have also checked the installation. Both of them can run the simulateAmber.py with the original .prmtop and .inpcrd file provided in the example folder, and it also can run non-PBC water droplet simulation on OpenCL platform successfully on the local desktop in office, so I personally do not think the error is caused by failed installation and guess it might be the problem of different GPU used.Traceback (most recent call last):
File "simulateAmber.py", line 19, in <module>
simulation.step(10000)
File "C:\Miniconda3\lib\site-packages\simtk\openmm\app\simulation.py", line 132, in step
self._simulate(endStep=self.currentStep+steps)
File "C:\Miniconda3\lib\site-packages\simtk\openmm\app\simulation.py", line 194, in _simulate
self.integrator.step(10) # Only take 10 steps at a time, to give Python more chances to respond to a control-c.
File "C:\Miniconda3\lib\site-packages\simtk\openmm\openmm.py", line 14646, in step
return _openmm.LangevinIntegrator_step(self, steps)
Exception: Particle coordinate is nan
Below are some information of the two computers.
Since our group will buy some GPUs for running larger system and OpenMM is one of our potential MD engine we will use because of its great performance on GPU acceleration, therefore I would like to know whether it is the hardware problem or sometime else. Thank you very much.My laptop:
GPU used: NVIDIA GeForce 840M
Way of installing OpenMM: Via Anaconda 4.4.0
OpenMM version: OpenMM 7.1.1
Windows local desktop in office:
GPU used: AMD Radeon(TM) R5 340X
Way of installing OpenMM: Via Miniconda 4.3.21
OpenMM version: OpenMM 7.1.1
Attached are the .prmtop and .inpcrd files I had used for test, and I just modify the input filename in simulateAmber.py for running the simulation.