speeding up wang-landau sampling of lattice model proteins ... · speeding up wang-landau sampling...

20
Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau CUDA Research Fast Forward NVIDIA, SC11 Nov 14, 2011 Center for Simulational Physics, The University of Georgia, USA Acknowledgment: Pan-American Advanced Studies Institute (PASI) program of NSF

Upload: others

Post on 13-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice

model proteins using GPUs

Ying Wai Li, Thomas Wüst and David P. Landau

CUDA Research Fast Forward NVIDIA, SC11 Nov 14, 2011

Center for Simulational Physics, The University of Georgia, USA

Acknowledgment:

Pan-American Advanced Studies Institute (PASI) program of NSF

Page 2: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

How do GPUs help?

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Outline

Wang-Landau sampling

Monte Carlo methods

HP lattice protein model

Statistical Physics

Thermodynamics

Page 3: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Two ways for physics simulations

StochasticDeterministic• molecular dynamics • Monte Carlo

Page 4: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Wang-Landau sampling• A random walk in energy space to obtain g(E)

• Physical observables are available for all temperatures from a single simulation

g(E)

E

Page 5: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Density of states in energy, g(E)

g(E)

E

Page 6: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Definitions of thermodynamic quantities

6

Partition function:

Average energy:

Specific heat:

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Page 7: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Simplifying proteins into models

Page 8: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

The HP protein model

K. A. Dill, Biochemistry 24, 1501 (1985); K. F. Lau & K. A. Dill, Macromolecules 22, 3896, (1989)

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Attractions between:

nearest-neighbornon-bonded

Polar

Hydrophobic

Page 9: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

The HP protein model

K. A. Dill, Biochemistry 24, 1501 (1985); K. F. Lau & K. A. Dill, Macromolecules 22, 3896, (1989)

nHH : number of hydrophobic monomer-monomer pairs

HH : attractive strength between H monomers

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Page 10: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

10*Error bars are smaller than the size of data points.

Specific heat as a signal of transitionsSpeeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Page 11: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Serial simulation flow chart

Generate

Calculate E

Update g(E)

Repeat until g(E) converges

Page 12: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Algorithm:

Parallelize Wang-Landau sampling

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Parallelization

Model:

Energy calculation

(and other structural parameters)

Page 13: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Generate

Calculate E

Update g(E)

Repeat until g(E) converges

^

^

use many g(E) i n a si mul at i on

Serial simulation flow chart

Par al l e

l

_____

Page 14: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Parallelized energy calculation

To find :

• One thread per monomer

• Each thread examines 2D nearest neighbors

Page 15: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Parallelized energy calculation

To find :

• 2D threads per monomer

• Each thread examines only one nearest neighbor

Page 16: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Parallelized Wang-Landau sampling (Scheme 1)

Multiple random walkers in single g(E)

J. Yin & D. P. Landau, J. Chem. Phys. 134, 074501 (2011)

g(E)

E

Page 17: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Parallelized Wang-Landau sampling (Scheme 1)

Multiple random walkers in single g(E)

J. Yin & D. P. Landau, J. Chem. Phys. 134, 074501 (2011)

g(E)

E

Known problem:

Inaccurate statistics in low energy regime

Solution:

Slight modification of WL sampling

Page 18: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Parallelized Wang-Landau sampling (Scheme 2)

Multiple g(E) in single simulation

E

g(E)

E

g(E)

E

g(E)……

thread #1 thread #2 thread #N

In progress…

Page 19: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

Parallelized Wang-Landau sampling (Scheme 2)

Multiple g(E) in single simulation

E

g(E)

E

g(E)

E

g(E)……

thread #1 thread #2 thread #N

In progress…

Page 20: Speeding up Wang-Landau sampling of lattice model proteins ... · Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li, Thomas Wüst and David P. Landau

Speeding up Wang-Landau sampling of lattice model proteins using GPUs Ying Wai Li

More current (and future) work

Parallel Monte Carlo trial moves ?

HP protein adsorption

Parallel calculations of

structural parameters

Combination of parallel schemes ?