Beruflich Dokumente
Kultur Dokumente
New Biology
David E. Shaw
Source: www.yourgenome.org
Levels of Protein Structure
t
~1 fs time step
Molecular Dynamics
Calculate forces
Molecular mechanics
force field
Molecular Dynamics
Move atoms
Molecular Dynamics
Move atoms
Iterate
... and
Iterate
iterate
... and
Iterate
iterate
Integrate Newton’s
laws of motion
Example of an MD Simulation
Main Problem With MD
Too slow!
What if MD were
– Perfectly accurate?
– Infinitely fast?
Harder problem
Why?
Required speedup:
> 10,000 x faster than current single-processor speed
~ 1,000x faster than current parallel implementations
Target Simulation Speed
~ 13 seconds on
our machine
(one segment)
Molecular Mechanics Force Field
∑ k (r − r )
2
E= b 0 Stretch
bonds
+ ∑
angles
kθ (θ − θ 0 ) 2 Bend Bonded
+ ∑
torsions
A [1 + cos(nτ − ϕ )] Torsion
qi q j
+ ∑∑ Electrostatic
i j >i rij Non-
Aij Bij Bonded
+ ∑∑ 12
− 6
Van der Waals
i j >i rij rij
Stretch Term
Potential Energy
∑ k (r − r )
2
E= b 0
bonds
0 r0
Distance Between Centers of Atoms
Stretch Term
Potential Energy
∑ k (r − r )
2
E= b 0
bonds
0 r0
Distance Between Centers of Atoms
Stretch Term
Potential Energy
∑ k (r − r )
2
E= b 0
bonds
0 r0
Distance Between Centers of Atoms
Stretch Term
Potential Energy
∑ k (r − r )
2
E= b 0
bonds
0 r0
Distance Between Centers of Atoms
Stretch Term
Potential Energy
∑ k (r − r )
2
E= b 0
bonds
0 r0
Distance Between Centers of Atoms
Stretch Term
Potential Energy
∑ k (r − r )
2
E= b 0
bonds
0 r0
Distance Between Centers of Atoms
Stretch Term
Potential Energy
∑ k (r − r )
2
E= b 0
bonds
0 r0
Distance Between Centers of Atoms
Bend Term
θ = θ0
Potential Energy
∑ kθ (θ − θ
2
E= 0 )
angles
θ0
Bond Angle
Bend Term
θ0
Potential Energy
∑ kθ (θ − θ
2
E= 0 )
angles
θ0
Bond Angle
Bend Term
θ0
Potential Energy
∑ kθ (θ − θ
2
E= 0 )
angles
θ0
Bond Angle
Bend Term
θ = θ0
Potential Energy
∑ kθ (θ − θ
2
E= 0 )
angles
θ0
Bond Angle
Bend Term
θ
θ0
Potential Energy
∑ kθ (θ − θ
2
E= 0 )
angles
θ0
Bond Angle
Bend Term
θ
θ0
Potential Energy
∑ kθ (θ − θ
2
E= 0 )
angles
θ0
Bond Angle
Bend Term
θ = θ0
Potential Energy
∑ kθ (θ − θ
2
E= 0 )
angles
θ0
Bond Angle
Torsion Term
E= ∑
torsions
A [1 + cos(nτ − ϕ )]
Potential
Energy
0 π /3 2π / 3 π 4π / 3 5π / 3 2π
Torsion Angle (radians)
Torsion Term
E= ∑
torsions
A [1 + cos(nτ − ϕ )]
Potential
Energy
0 π /3 2π / 3 π 4π / 3 5π / 3 2π
Torsion Angle (radians)
Torsion Term
E= ∑
torsions
A [1 + cos(nτ − ϕ )]
Potential
Energy
0 π /3 2π / 3 π 4π / 3 5π / 3 2π
Torsion Angle (radians)
Electrostatic Term
+ +
Potential Energy
qi q j
E = ∑∑
i j >i rij
+ +
Potential Energy
qi q j
E = ∑∑
i j >i rij
+ +
Potential Energy
qi q j
E = ∑∑
i j >i rij
+ _
+
Potential Energy
qi q j
E = ∑∑
i j >i rij
+ _
+
Potential Energy
qi q j
E = ∑∑
i j >i rij
_
+
Potential Energy
qi q j
E = ∑∑
i j >i rij
Aij Bij
E = ∑∑ 12
−
r rij6
Potential Energy
i j >i ij
Repulsive (1 / r 12 )
Attractive (1 / r 6 )
Combined
Distance Between Centers of Atoms
Van der Waals Terms
Aij Bij
E = ∑∑ 12
−
r rij6
Potential Energy
i j >i ij
Repulsive (1 / r 12 )
Attractive (1 / r 6 )
Combined
Distance Between Centers of Atoms
Van der Waals Terms
Aij Bij
E = ∑∑ 12
−
r rij6
Potential Energy
i j >i ij
Repulsive (1 / r 12 )
Attractive (1 / r 6 )
Combined
Distance Between Centers of Atoms
Van der Waals Terms
Aij Bij
E = ∑∑ 12
−
r rij6
Potential Energy
i j >i ij
Repulsive (1 / r 12 )
Attractive (1 / r 6 )
Combined
Distance Between Centers of Atoms
Van der Waals Terms
Aij Bij
E = ∑∑ 12
−
r rij6
Potential Energy
i j >i ij
Repulsive (1 / r 12 )
Attractive (1 / r 6 )
Combined
Distance Between Centers of Atoms
Van der Waals Terms
Aij Bij
E = ∑∑ 12
−
r rij6
Potential Energy
i j >i ij
Repulsive (1 / r 12 )
Attractive (1 / r 6 )
Combined
Distance Between Centers of Atoms
Van der Waals Terms
Aij Bij
E = ∑∑ 12
−
r rij6
Potential Energy
i j >i ij
Repulsive (1 / r 12 )
Attractive (1 / r 6 )
Combined
Distance Between Centers of Atoms
Molecular Mechanics Force Field
∑ k (r − r )
2
E= b 0 Stretch
bonds
+ ∑
angles
kθ (θ − θ 0 ) 2 Bend Bonded
+ ∑
torsions
A [1 + cos(nτ − ϕ )] Torsion
qi q j
+ ∑∑ Electrostatic
i j >i rij Non-
Aij Bij Bonded
+ ∑∑ 12
− 6
Van der Waals
i j >i rij rij
What Takes So Long?
New architectures
– Designing a specialized machine
– Enormously parallel architecture
– Based on special-purpose ASICs
– Dramatically faster for MD, but less flexible
– Projected completion: 2008
New algorithms
– Applicable to
• Conventional clusters
• Our own machine
– Scale to very large # of processing elements
Interdisciplinary Lab
Strengths:
– Flexibility
– Mass market economies of scale
Limitations
– Doesn’t exploit special features of the problem
– Communication bottlenecks
• Between processor and memory
• Among processors
– Insufficient arithmetic power
Typical Commodity Microprocessor
Typical Commodity Microprocessor
General-Purpose Scientific Supercomputer
Strengths:
– Flexibility
– Ease of programmability
Strengths:
– Several orders of magnitude faster for MD
– Excellent cost/performance characteristics
Limitations:
– Not designed for other scientific applications
• They’d be difficult to program
• Still wouldn’t be especially fast
– Limited flexibility
Source of Speedup on Our Machine
Programmable,
Flexible general-purpose
Subsystem Efficient geometric
operations
Pairwise point
Specialized interactions
Subsystem
Enormously parallel
Where We Use Specialized Hardware
Examples:
Electrostatic forces
Van der Waals interactions (at least attractive term)
Example: Particle Interaction Pipeline (one of 32)
Array of 32 Particle Interaction Pipelines
Advantages of Particle Interaction Pipelines
GC = Geometry Core
(each a VLIW processor)
Geometry Core
(one of 8; 64 pipelined lanes/chip)
Instruction
From Memory
PC
Tensilica Decode
Core
X Y Z W X Y Z W
Data
X X X X Memory X X X X
f + f + f + f + f + f + f + f +
+ +
System-Level Organization
Traditional O (R 3) Not
methods neighbors scalable
O (R 3/2) O (P –1/2)
NT Method
neighbors scaling
Partitioning of Space Into Boxes
Interact
– One atom from (cubical) interaction box
– One atom from either interaction box or import
region
3Rb 2 + 3π R 2 b / 2 + 2π R 3 / 3
Interact
– One atom from tower Tower Atom
Vi = 2 Rbxy2 + 2 Rbxy bz + π R2 bz /2
Results:
Optimal bxy = [ c1/2 + (Vb c –1/2 – c)1/2 ] / 2
where c = d / 6 – 2 π RVb / d
d = {27 Vb2 – 3 [3 Vb3 ( (4π R)3 + 27 Vb) ]1/2 }1/3
Vb = box volume
To find minimal import volume:
– Use optimal bxy to calculate optimal bz
– Substitute into equation for Vi
NT’s Import Volume With Optimized Box
So Vi = O ( R 3/2 (N / p) 1/2 )
Comparison of
Traditional and NT Methods
Traditional Method Imports Corner Subregions
NT Method Doesn’t Import Any Corner Subregions
NT vs. Traditional Method
NT method
• Transfer time ~ square root of that sphere’s
volume
7000
6000
5000
Time
4000
Traditional
3000 Method
2000 NT
Method
1000
8 64 512 4K 32K
Number of Processors