Comments (2)
Hm. Collectively, get_value
takes up 370 s (75%) of the runtime, but it seems like this might be a lazy function that masks the actual compute time.
compute_energy
claims to take up 75% of the runtime, but the OpenMM energy computation routine getState()
is only 2.5%---the rest of the time is new_fcn()
, with a cyclic (?) call to createSystem
and omm_nonbonded_force
, but collectively these supposedly only account for ~10%. Where the time is actually being spent is a mystery to me.
It seems like things could be sped up by two things:
- Minimizing the number of unit conversions required by setting up the whole PyMC model in a standard unit system. You can convert everything to compatible units by calling
quantity.value_in_unit_system(simtk.unit.md_unit_system)
. Once you strip the units when setting up the PyMC model and functions, you avoid the cost of converting back/forth from units every step, though you still have to worry about stripping units from calls tocontext.getState(getEnergy=True).getPotentialEnergy()
. - There are a lot of calls to
createSystem
because you separately create an OpenMMSystem
object, instantiate aContext
, compute the energy, and delete everything for each configuration of each fragment. There are many ways to speed this up, but even caching theSystem
object for a givenparam
inside ofTorsionScanSet
would probably speed things up immensely.
I would suggest first merging your fragments
branch with the main repo via a PR and then trying to do some optimization, making sure tests still pass for each optimization. Sine we are using nose-timer
, you can easily see if you are improving speed during the nosetests.
from torsionfit.
Addressed in #25
- system was cached
- removed deep copy in ParmEd
- switched to sqlite backend
This resulted in a 100x speedup.
from torsionfit.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torsionfit.