OpenMM-plumed plugin on CUDA platform

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
POST REPLY
User avatar
Wei Chen
Posts: 83
Joined: Thu Jul 02, 2015 6:35 pm

OpenMM-plumed plugin on CUDA platform

Post by Wei Chen » Tue Jun 20, 2017 1:18 pm

Hi,

I have been working with OpenMM-plumed plugin on CUDA platform recently. I do not know if I correctly understand the code, it seems that when we run simulation on CUDA, there is lots of communication between OpenMM and plumed. Based on this function: https://github.com/peastman/openmm-plum ... s.cpp#L198, it seems that at every step OpenMM firstly copies current state to plumed and then receives calculated results from plumed and do post-computation. Since plumed is running on CPU (I checkout the code and there is no CUDA implementation for that), will this communication affect simulation speed?

Thanks!

Wei

User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by Peter Eastman » Tue Jun 20, 2017 2:40 pm

Yes, there's some overhead from that. It's usually not too bad, but it does slow things down a bit. A bigger problem is that Plumed itself can be very slow.

We're working on a native CV feature within OpenMM that has the potential to be a lot faster. Take a look at https://github.com/pandegroup/openmm/pull/1837 if you're interested. The API is in https://github.com/peastman/openmm/blob ... mCVForce.h. If you'd like to try it out, I'd value your feedback.

Peter

User avatar
Wei Chen
Posts: 83
Joined: Thu Jul 02, 2015 6:35 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by Wei Chen » Wed Jun 21, 2017 1:43 pm

Thank you!

May I know what is the difference between "CustomCVForce" and "CustomManyParticleForce"? Is it that "CustomCVForce" breaks the expression of "CustomManyParticleForce" into two parts: first part defines CV with "addCollectiveVariable" and second one defines energy in terms of CVs?

Thanks!

Wei

User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by Peter Eastman » Wed Jun 21, 2017 1:46 pm

I'm not sure what you're talking about. CustomManyParticleForce is totally unrelated. It has nothing to do with collective variables.

Peter

User avatar
Wei Chen
Posts: 83
Joined: Thu Jul 02, 2015 6:35 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by Wei Chen » Wed Jun 21, 2017 1:55 pm

For instance, if we want to do umbrella sampling on one dihedral angle, can we just pass:

Code: Select all

1/2 * (phi - 1) ^ 2;
phi = dihedral(p1,p2,p3,p4);
into "CustomManyParticleForce"

Or equivalently we may also pass

Code: Select all

1/2 * (phi - 1) ^ 2;
into "CustomCVForce"

and then define "phi" as a CV separately.

Is that how CustomCVForce works?

Wei

User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by Peter Eastman » Wed Jun 21, 2017 2:04 pm

Maybe you mean CustomCompoundBondForce instead of CustomManyParticleForce?

Yes, that's the basic idea. In the most trivial case, you could add a single CV called "v" to the CustomCVForce, then set its energy expression to just "v". In that case, its energy would be the same as if you had just added the Force defining the CV directly to the System. Of course, in that case there wouldn't be any reason to use CustomCVForce.

Peter

User avatar
Wei Chen
Posts: 83
Joined: Thu Jul 02, 2015 6:35 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by Wei Chen » Thu Jun 22, 2017 7:21 am

Thank you for clarifying this!

Just curious, are you going to implement biasing methods (e.g. metadynamics and some others) on top of Custom CV in OpenMM package?

Wei

User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by Peter Eastman » Thu Jun 22, 2017 9:42 am

Yes, that's the plan.

Peter

User avatar
Wei Chen
Posts: 83
Joined: Thu Jul 02, 2015 6:35 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by Wei Chen » Thu Jun 22, 2017 12:59 pm

Nice to hear that!

Thank you!

Wei

User avatar
web design
Posts: 10
Joined: Fri Aug 18, 2017 12:43 pm

Re: OpenMM-plumed plugin on CUDA platform

Post by web design » Fri Aug 18, 2017 1:11 pm

It was so good

POST REPLY