Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2011 Jun 1.
Published in final edited form as: J Mol Graph Model. 2010 Jun;28(8):904–910. doi: 10.1016/j.jmgm.2010.04.001

Accelerating Electrostatic Surface Potential Calculation with Multiscale Approximation on Graphics Processing Units

Ramu Anandakrishnan a, Tom R W Scogland b, Andrew T Fenley c, John C Gordon d, Wu-chun Feng e,*, Alexey V Onufriev f,**
PMCID: PMC2907926  NIHMSID: NIHMS204895  PMID: 20452792

Abstract

Tools that compute and visualize biomolecular electrostatic surface potential have been used extensively for studying biomolecular function. However, determining the surface potential for large biomolecules on a typical desktop computer can take days or longer using currently available tools and methods. Two commonly used techniques to speed up these types of electrostatic computations are approximations based on multi-scale coarse-graining and parallelization across multiple processors. This paper demonstrates that for the computation of electrostatic surface potential, these two techniques can be combined to deliver significantly greater speed-up than either one separately, something that is in general not always possible. Specifically, the electrostatic potential computation, using an analytical linearized Poisson Boltzmann (ALPB) method, is approximated using the hierarchical charge partitioning (HCP) multiscale method, and parallelized on an ATI Radeon 4870 graphical processing unit (GPU). The implementation delivers a combined 934-fold speed-up for a 476,040 atom viral capsid, compared to an equivalent non-parallel implementation on an Intel E6550 CPU without the approximation. This speed-up is significantly greater than the 42-fold speed-up for the HCP approximation alone or the 182-fold speed-up for the GPU alone.

Keywords: Biomolecular electrostatics, Multiscale modeling, Graphical Processing Unit (GPU), Implicit solvent model

1. Introduction

Electrostatic interactions are critical for biomolecular function.1-12 At the same time, the long-range nature of these interactions often makes their estimation a computational bottleneck in current atomistic molecular modeling13,14. Approaches to speed-up these computations can generally (though not always cleanly) be subdivided into two very broad categories: (1) those that seek to gain speed by making computationally effective approximations to the underlying physical model and (2) those that do not affect the accuracy of the physical model but strive to accelerate the computation at the software or hardware levels. Examples in the first category include the spherical cut-off method15,16, the fast multipole approximation17-19, and the current “industry standard” for explicit solvent simulations — the particle mesh Ewald (PME) method20-23. Among the most prominent practical approaches in the second category is parallel computation on multiple processing cores. Each of these approaches has its advantages and limitations24,25. For example, the PME method can be very accurate but requires an artificial periodicity to be imposed on the molecular system. In addition, the method is currently not suitable for implicit solvent simulations26. Parallel computation on multiple processing cores may lead to spectacular speed-ups for certain types of problems27, but not for others — for example, specific PME implementations may not scale all that well on large parallel machines. Furthermore, access to such expensive resources may be limited.

Within either of the above general categories of approaches, estimating the long-range electrostatic interactions is still computationally intensive. Even a single state computation which involves long range electrostatics, may require an extraordinary amount of computational resources for larger structures. For example, a 2006 study of electrostatic properties of viral capsids28 using the adaptive Poisson-Boltzmann solver29, required 1000 processors on the Blue Horizon and Data Star supercomputers for each run. Computational requirements for modern molecular dynamics, which may require millions of such single state estimates, are even more demanding.30-34. In the past, in addition to algorithmic advances, scientists could also rely on Moore’s Law35 to continually accelerate these computations.* The rapid hardware advances from Moore’s Law gave software a “free ride” to better performance, but this free ride is now over. With clock speeds stalling out and computational horsepower instead increasing due to the rapid doubling of the number of cores per processor, serial computing is now moribund in many areas of natural science, and the vision for parallel computing, which started over forty years ago, is a revolution that is now upon us.

The traditional approach to parallel computing has made use of large-scale supercomputers, oftentimes referred to as big iron. However, such supercomputers present significant challenges with respect to ease of access and use, and cost, e.g., the fastest supercomputer in the world in 2009 cost $133M to build36. In contrast, the growing proliferation of many-core processors, like the graphics processing unit (GPU) on a video card, promises to deliver supercomputing horsepower to the desktop while simultaneously enhancing ease of access as well as dramatically reducing cost. With the peak floating-point performance of a GPU now at a teraflop (1012 floating-point operations per second), the GPU delivers supercomputing in a small and economical package. For example, a high-end server with the latest GPU card costs a mere $1,500, resulting in an astounding performance-price ratio of 667 megaflops per dollar and performance-space ratio of 500 teraflops per square foot. In contrast, the world’s fastest supercomputer, Roadrunner, has a peak of 1,457 teraflops at a cost of $133M for a mere performance-price ratio of 11 megaflops per dollar and performance-space ratio of 243 teraflops per square foot. However, the current programming model for GPUs is only amenable to highly data-parallel applications; efficient GPU mappings for less data-parallel applications are extraordinarily difficult to realize37. Unlike supercomputer clusters consisting of general-purpose processors and direct support for interprocessor communication, the GPU has limited interprocessor communication capabilities and limited data cache. Therefore the GPU is most effective when performing stream processing, i.e., performing a similar set of computations against a large set of data. This paper discusses the techniques used to address limitations of the GPU while taking advantage of its multiprocessing capabilities in the context of electrostatic computations.

A number of different biomolecular modeling applications have recently been implemented on GPUs38-40, including the computation of long-range electrostatic potential in the context of molecular dynamics41-44. Our implementation focuses on the computation of electrostatic surface potential, using a realistic solvation model, in order to demonstrate that “multiscale” approximation schemes, such as the hierarchical charge partitioning (HCP) algorithm25, can be combined with the GPU to achieve significantly greater speed-up than the HCP approximation or the GPU alone. Specifically, we algorithmically map and transform electrostatic potential calculation45 along with the HCP approximation onto the GPU.

The remainder of this paper is organized as follows. In the next section, we briefly describe the specific application considered here (i.e., computation of molecular surface potential), the HCP, and the GPU implementation. Then we examine the speed and accuracy of this implementation for a set of representative biomolecular structures. In conclusion, we summarize our finding and discuss the future potential for the approach presented here.

2. Methods

This section describes the specific methods used to compute long-range interactions and an implementation of the entire computational process on the GPU. Specifically, we investigate the extent to which the speed-up resulting from approximating the electrostatic potential via a multi-scale approach (HCP, described below) can be combined with the speed-up resulting from mapping and transforming the electrostatic potential calculation introduced earlier (GEM45) and HCP onto the GPU. The implementation of GEM with one level of HCP for the CPU, with full graphics functionality, can be downloaded from http://people.cs.vt.edu/~onufriev/software. The platform specific computational core for running GEM with one level of HCP on the GPU, as described below, is available from the authors upon request.

2.1. Computation of Biomolecular Electrostatic Potential

All of the electrostatic calculations presented in this paper were done using the analytic, linearized Poisson-Boltzmann (ALPB) model45-47 as implemented in the GEM package. The functional form of the ALPB electrostatic potential ϕi varies depending on the region of space where the potential is computed; two of the regions – the interior of the molecule and the solvent space – are depicted in figure 1 as the two dielectrics. The specific functional forms of ϕi for all the regions are given in Gordon et al.45. Equation (1) is the simplest solution for the calculation of physically admissible ϕi anywhere in the solvent, including the molecular surface, see figure 1. The constant α = 0.580127, in equation (1) minimizes the error in the solvation energy of a random charge distribution inside a sphere48. Adding the effects of salt in the Debye-Hückel (linear) limit is outlined in Gordon et al.45. The potential at any single point in space, for example a vertex point on the molecular surface, is computed as a sum of contributions from individual atomic charges in the solute. Such a calculation can be done without the need to also compute the potential at any other point(s) – a computational freedom that the numerical Poisson-Boltzmann solvers are missing. An extensive analysis of the accuracy of the ALPB model in computing biomolecular electrostatic potential is presented elsewhere45.

Figure 1.

Figure 1

Definition of the geometric parameters that enter equation (1) used to compute the electrostatic potential ϕi due to a single charge located inside an arbitrary biomolecule (in the absence of mobile ions). Here di is the distance from the source charge qi to the point of observation where ϕi needs to be computed. The molecular surface (solid line) separates the low dielectric interior (∈in blue region) from the high dielectric solvent space, ∈out. We project the molecular surface defined by pre-computed vertex points a small distance, p, outwards into the solvent space along the surface normals. The projected surface is shown as the dashed line. The so-called effective electrostatic size of the molecule, A, characterizes its global shape and is computed analytically46. The distance from the point of observation to the “center” is then defined as r = A + p.

ϕisolvent=qi∈out1(1+α∈in∈out)[(1+α)di−α(1−∈in∈out)r] (1)

To assess the speed-up resulting from the combination of the HCP and the GPU we selected the GEM software package45. GEM is an open-source implementation of the ALPB model. GEM was selected as a platform for experimentation, in this case, due to the facile nature of the algorithm and the flexibility of the platform for innovation and modification to rapidly generate prototypes.

2.2. The Hierarchical Charge Partitioning (HCP) Approximation

The hierarchical charge partitioning (HCP) approximation25 exploits the natural partitioning of biomolecules into constituent structural components in order to speed-up the computation of electrostatic interactions with limited and controllable impact on accuracy. Biomolecules can be systematically partitioned into multiple molecular complexes, which consist of multiple polymer chains or subunits, which in turn are made up of multiple amino acid or nucleotide groups. These components form a hierarchical set with, for example, complexes consisting of multiple subunits, subunits consisting of multiple groups, and groups consisting of multiple atoms. Atoms represent the lowest level in the hierarchy while the highest level depends on the problem. Briefly, HCP works as follows. As illustrated in Figure 2, the charge distribution of components, other than at the atomic level, is approximated by a small set of point charges. The electrostatic effect of distant components is calculated using the smaller set of point charges, while the full set of atomic charges is used for computing electrostatic interactions within nearby components. The distribution of charges for each component used in the computation varies depending on distance from the point in question: the farther away the component, the fewer charges are used to represent the component. The actual speed-up from using HCP depends on the specific hierarchical organization of the biomolecular structure under consideration. Under conditions consistent with the hierarchical organization of realistic biomolecular structures, the HCP algorithm scales as O(N log N), where N is the number of atoms in the structure. For large structures, the HCP can be several orders of magnitude faster than the exact O(N2) all-atom computation. A detailed description of the HCP algorithm can be found in Anandakrishnan et. al.25. For the purpose of the analysis presented in this work, we use the 1-charge approximation, where the charge distribution of components is approximated by a single charge. Increasing the number of charges used in the approximation would increase accuracy and computational cost. The HCP can also use multiple hierarchical levels of partitioning of biomolecular structures, as described above. However, in the current work we use the first level of partitioning for the HCP algorithms. Increasing the number of levels used by the HCP algorithm reduces the computational cost further.

Figure 2.

Figure 2

Illustration of the Hierarchical Charge Partitioning (HCP) approximation. In this illustration a biomolecular structure is partitioned into its constituent groups, each of which consist of multiple atoms. The charge distribution of each group is approximated by a single charge. The threshold distance determines when to use the approximate charge distribution in electrostatic computations, instead of individual atomic charges.

2.3. Mapping GEM and HCP onto the GPU

The initial exploration of mapping GEM and HCP to the GPU was conducted using the ATI Stream Software Development Kit (SDK) from AMD. The SDK provides a high-level programming language called ATI Brook+49 to ease the development of applications for the GPU, and it includes a compiler and run-time layer that handles the low-level details necessary to run computations on the GPU.

Brook+ is based on the Brook stream computing language from Stanford50, which in turn is an extension of standard ANSI C. Brook+ is specifically optimized to compile and run on ATI stream-capable GPUs through the AMD/ATI Compute Abstraction Layer (CAL). Whereas CAL presents a low-level programming interface, Brook+ provides a high-level programming interface, thus easing the development of GPU applications.

The calculation of electrostatic potential via the analytical formula implemented in GEM, mentioned above, can be decomposed as a data-parallel computation across all points on the surface, or vertices, at which the electrostatic potential is calculated. In addition, the potential at each vertex can be computed as a reduction (or more specifically, a sum) of a set of independent calculations on each atom, thus allowing for multiple dimensions of parallelism.

The basic mapping of GEM to the GPU treated the calculation of potential at each vertex as an individual unit of execution, and thus, computed one vertex per GPU thread. In the initial version, the electrostatic surface potential at all the vertices was computed with a single kernel launch, which is equivalent to an offloaded function call to the GPU device. We found that while this approach worked, it did not scale. That is, as the number of threads increased beyond a certain point (in this case, beyond 25,000-30,000 threads), so did the overhead of scheduling them, which in turn, degraded performance. Specifically, our tests showed that less than 25,000 was a reasonable number for the ATI Radeon 4870 card; anything more than 30,000 was materially slower despite the reduced number of kernel launches. In light of this, subsequent versions only ran at most 25,000 threads per kernel launch.

While the above mapping was effective, it still retained many features of the original code that do not translate favorably into GPU performance. Below we describe additional modifications to improve the execution of GEM on the GPU.

2.3.1. Data Structures

While Brook+ version 1.4 supports structures, it does not support referencing structure members in an array of structures. As a result, all the arrays of structures in GEM had to be flattened into arrays of primitives in order to get the GEM code to even run on the GPU. As much as this change was necessary to enable GEM to run on the GPU, the change also makes sense to do from a performance standpoint as it aligns the data structures to allow for coalesced memory accesses. We intend to investigate this further when the support for structures in Brook+ improves sufficiently for us to implement the code with the original structure of the data intact.

2.3.2. Conditional Performance

Conditional statements, particularly conditionals that cause divergence (or divergent branches), are a common cause of performance degradation in GPU programs, as has been documented in previous work, including the AMD Stream User Guide51. Non-divergent branching, on the other hand, is generally not mentioned in connection with performance issues. However, they too can incur a high cost; in the case of GEM, 30% performance degradation on the GPU and 15% on the CPU. Thus, minimizing conditionals in high traffic areas of code is long-standing conventional wisdom, which is often forgotten when working with modern CPUs. (Programmers sometimes rely on the branch prediction or speculative execution capabilities of CPUs to deal with potentially excessive use of conditionals.) For GPUs, the impact of branching is more severe since GPUs lack branch prediction and speculative execution, and other technologies that reduce the cost of branching, as on modern CPUs.

In GEM’s original computational core, most conditionals were used to keep the code maintainable, e.g., selecting between code paths even though they were predetermined by the parameters to the program. Specifically, there are two input parameters: (1) the region in which the potential is computed and (2) the type of potential to be computed, which determines the execution path through five conditionals. For example, two of the conditionals select the region being computed, such as the interior of the molecule or the solvent space shown in Figure 1. To remove these conditionals, we created several different versions of the GEM function and Brook+ kernel, 15 total, each of which now contains only the conditionals that must be evaluated on every input item individually, cutting the total number of branches in most kernels to zero and at the most three.

The specific kernel to execute is now selected by a set of conditionals outside the function/kernel being run and the conditionals are only invoked once. A total of 2-5 conditionals is in stark contrast to what was originally required. The initial version required # of atoms * # of vertices * # conditionals conditional statements, or for the viral capsid, 476, 040 * 593, 615 * 5 = 1, 412, 922, 423, 000 conditionals! Thus, we reduced almost one and a half trillion conditionals down to five.

Hereafter, we refer to the version of the code with conditionals moved outside the kernel as the split version of the code. The unsplit version uses conditionals in the computational loop so as to avoid code replication. While this may be good practice in terms of readability and maintainability of the code, it adversely impacts performance. Compiler techniques or source-to-source translation could be used to make this solution more maintainable, but such techniques are outside the scope of this paper. All CPU and GPU versions used in the results section have the conditionals moved outside the main computational loop, as described above.

2.3.3. Hierarchical Charge Partitioning

To further accelerate the computation and to test the performance of GPU-based computation with a multiscale algorithm, we incorporated the HCP method described in the previous section. The incorporation of the HCP into the GPU-based computation introduced several new issues that had to be addressed. First, the “multiscale” charge partitioning introduced additional branching when the HCP threshold distance was less than the diameter of the molecule. As a conseqence, some amount of divergent branching could not be avoided in order to efficiently implementing HCP on the GPU. It also added several fields of data, and thus arguments, that did not exist in the non-HCP versions. Due to a limitation in the number of bytes passable as arguments using the current version of Brook+, we moved the calculation of many of the arguments from the CPU to the GPU in order to save space in the argument list.

3. Results and Discussion

Wall times from four different implementations of GEM, i.e., the computation of electrostatic surface potential, were collected: (1) GEM without HCP, running on a single CPU; (2) GEM with HCP, running on a single CPU; (3) GEM without HCP but running on the GPU, and (4) GEM with HCP but running on the GPU. Times were measured using time checking calls within the main function in each implementation, which remained unchanged between versions. Only the computational kernel was measured, excluding the file I/O necessary to read and write the data files.

3.1. Experimental Set-Up

All results were measured on a system with an Intel Core 2 Duo E6550 processor, which contains 2 computing cores, 2GB of DDR2-800 memory, and an ATI Radeon HD 4870 GPU on a PCI-E X16 interface running 32-bit Ubuntu Linux version 8.10. The GPU experiments were run with a single CPU process along with a kernel offloaded to the HD 4870. The CPU experiments were run in a single process on one core of the E6550 processor. All times reported in this section are averages of five runs. The execution times for the runs proved to be quite consistent, with variances in execution time at less than 1%. Our base CPU version of GEM represents the performance attainable by an experienced programmer in C, short of inserting inline assembly code. SSE acceleration is applied via compiler optimizations in GCC 4.2.4, and using arrays of primitives, as discussed earlier. Both of these CPU optimizations keep the baseline as similar to the GPU implementation as possible. The GCC compiler-applied SSE optimizations improved performance by approximately two-fold. All computations were performed with single-precision floating-point arithmetic, both on the CPU and GPU.

A representative set of six atom-level molecular structures was used for testing. The structures were selected to span a large range of sizes. The six structures, their protein databank (PDB) IDs52, and sizes are as follows:

  1. H helix of myoglobin, 1MBO, 382 atoms

  2. chain A of calcium binding protein S100B, 1UWO, 1,441 atoms,

  3. chain A of cytochrome CD1 nitrite reductase, 1QKS, 8,542 atoms,

  4. nucleosome core particle, 1KX5, 25,086 atoms,

  5. chaperonin GroEL, 2EU1, 109,802 atoms, and

  6. tobacco ringspot virus capsid, 1A6C, 476,040 atoms.

The atomic coordinates for these structures were obtained from the protein databank and atomic charges assigned using the H++ system (www.cs.vt.edu/biophysics/H++)53, which uses the standard continuum solvent methodology54 to compute protonation states of ionizable groups. The surface vertex points at which electrostatic potential is calculated for these structures are obtained using the program MSMS55. MSMS is run with a probe radius of 1.5 Å and a triangulation density of 3.0 vertices per Å2 for all structures except the virus capsid, for which, due to limitations of the MSMS software a probe radius of 3.0 Å and a triangulation density of 1.0 vertices per Å2 is used.

3.2. Experimental Results

We have three main versions of the code which merit comparison, see figure 3. Each version is compared with the reference non-HCP serial CPU version of the code. The use of the HCP approximation alone, the red line with triangle data points, speeds up the calculation from about 2x on the smallest structures to roughly 42x on the viral capsid, relative to the reference. The dark blue line with circle data points represents the Brook+ GPU version with all optimizations except the HCP applied, and is found to yield substantially higher speed-up than the HCP alone*, especially for larger structures. The light blue line with square data points corresponds to the use of GPU in combination with the HCP (GPU-HCP). For small structures, the stand alone GPU version performs better than the GPU-HCP version. However, beyond structures of the order of 104 atoms, the GPU-HCP version is the clear winner in performance gains. For example, for the largest structure with 476,040 atoms, the speed-up using the GPU only, without HCP, is 182x, the speed-up without the GPU, using HCP only, is 42x, and the speed-up using both the GPU and HCP is 934x as can be seen in Table 3.2. In the same table we present the RMS error as a measure of accuracy achieved by each implementation. It is worth noting that the error introduced by switching from running single precision on the CPU to single precision on the GPU is almost immeasurably small. Since most computers are multi-core these days, including the test machine, it is also worth noting that the algorithm scales well across multiple cores, but since the potential combination of GPU acceleration and HCP is the goal of this paper we chose not to include direct results for multi-core CPUs. It is safe to say however that the speed-up is near but not exceeding direct speed-up, 1x per core, or roughly 2x on the test machine, and scaling to as many cores as there may be in a system.

Figure 3.

Figure 3

Acceleration of the electrostatic potential computations resulting from various HCP/GPU combinations considered in this work. The red line with triangle data points shows the speed-up of the potential computation resulting from the use of the multiscale approximation HCP alone. The dark blue line with circle data points corresponds to the same potential computed on the GPU alone, and the light blue line with square data points represents the combined speed-up of both the HCP and the GPU. The shaded region visually emphasizes the range of structure sizes where the combined speed-up is greater than either the HCP or GPU speed-up by itself. All speed-ups are measured relative to the CPU serial version.

The combined speed-up using both the GPU and HCP is not fully multiplicative due to the following two additional branches in the HCP algorithm. One, for the 1-charge 1-level HCP approximation implemented here, if the distance to a component is beyond a specified threshold distance the HCP algorithm treats the component as a single point charge, otherwise all atoms within the component are used in the computation. Two, if the net charge of a component is zero, no further computations are performed for that component. However, on the GPU, all threads must execute the same instruction in each cycle. Therefore, even if a component in a given thread is beyond the threshold distance or has a zero net charge, and can complete its computations much faster, the thread can not proceed until other threads have completed.

The accuracy of the computations was also evaluated. For the single point computation considered here the error introduced by the single precision GPU is much smaller than the error due to the HCP approximation alone25. For example, for the nucleosome the RMS error due to the use of single precision compared to double precision (both on the CPU version) was 0.002916 kcal/mol/|e| and and the error introduced by the GPU compared to the single precision CPU version was 0.000119 kcal/mol/|e|, whereas the error due to the HCP approximation alone was 0.277960 kcal/mol/|e|. However, this small error could accumulate and grow in applications involving large numbers of cumulative computations, such as molecular dynamics simulations. Further analysis would be required to determine the affect of GPU and HCP errors on such applications.

4. Conclusions

Electrostatic surface potential can be an important indicator of biomolecular function and activity, thus the ability to compute and visualize surface potential can be a valuable tool for studying biomolecules. However, for large structures, the estimation of the surface potential can be computationally demanding, making such computations inaccessible to desktop PCs and even to large clusters. One can reduce these computational costs by using coarse-grain (multiscale) approximations or by parallelization across multiple processors, however it is not in general obvious that the two techniques can be successfully combined. We demonstrate here that for the computation of electrostatic surface potential combining a multiscale approximation with parallelization on the GPU can deliver significantly greater speed-up than either approach separately. The electrostatic surface potential is computed using the analytical linearized Poisson Boltzmann (ALPB) model, which use a set of simple formulae within the implicit solvent framework, to compute potential. The hierarchical charge partitioning (HCP) method is used to speed-up the calculation by using a multiscale approximation for the potential, and further speed-up is achieved by executing the computation on an ATI Radeon 4870 GPU. We find that the errors introduced by the use of single precision GPU implementation are negligible for the purpose of computing single-point biomolecular potential.

We also show that, for large biomolecular structures, combining the power of the GPU with the HCP approximation can achieve a combined speed-up of up to 934x over the reference computation based on a single processor without the use of the HCP. This combined speed-up is larger than the individual speed-ups for structures larger than about 10,000 atoms, and for the largest structures tested is many times larger than what could have been achieved by the GPU (182x) or HCP (42x) alone. However, for structures smaller than about 10,000 atoms the combined performance is less than that of the GPU-based computation alone because of unequal processing times across multiple threads such that the speed-up is constrained by the slowest thread. One particular challenge to achieving this speed-up was the presence of divergent branching due to the “multiscale” threshold in HCP, which severely limited the performance gain. This optimization helped improve speed-up for large structures (> 10, 000 atoms) but the associated overhead reduced performance for smaller structures.

Although this implementation produced impressive speed-ups, we do not believe it represents the full potential of the GPU-HCP approach. For example, only one level of HCP approximation was implemented here. We speculate that implementing additional levels of HCP, despite the additional branching involved, can conservatively result in an additional order of magnitude speed-up. The computation of electrostatic potential as implemented here, involves three steps - computing HCP group charges, determining charges to use in potential computation and the actual potential computation. Only the last of these three steps is executed on the GPU. Additional speed-up may be possible by also executing the first two steps on the GPU. These additional performance improvements will be explored in a future study.

The combined HCP-GPU implementation presented here raises the possibility of making various biomolecular modeling applications accessible to researchers using desktop computers, and in “real time”. Examples of applications that can benefit immediately from the methods presented in this work include calculations of surface potential around large structures. Exploration of the changes in the computed potential due to changes in the environment and/or structures, such as changes in pH or mutations, can now be computed virtually immediately, thus greatly facilitating research.

In the longer term, we hope that the main conceptual result of this work – that acceleration of the computation of long range interactions based on multi-scale ideas can be combined with GPU-based speed-ups – will impact a broad spectrum of applications where the speed of such computations is critical. For example, virtual screening for drug discovery involves screening hundreds of thousands to millions of potential candidate ligands, using “docking” simulations, to identify likely leads for further analysis56. Both the ligand and drug target can have multiple conformations and relative orientations resulting in hundreds to thousands of combined degrees of freedom57. It may be possible to apply the HCP-GPU approach to accelerate the virtual screening process. Similarly, the all-atom molecular dynamics simulation of even small to medium sized molecular systems (< 100, 000 atoms), for biologically meaningful time scales (microseconds), requires the latest massively parallel supercomputers. It may be possible to make such simulations more accessible using the HCP-GPU approach presented here.

Table 1.

Times, speed-ups, root mean square (RMS) error and relative RMS error of the surface potential calculations performed with the 4 GEM versions on the virus capsid structure, averaged over 5 runs of each version. Speedup and error are calculated relative to the CPU version. Relative RMS error is calculated as RMS error divided by average absolute potential.

Version Average Time (seconds) Speed-up Over CPU RMS Error (kcal/mol/|e|) Relative RMS Error
CPU 80690.2 1.00 0 0
CPU with HCP 1442.2 41.68 0.1680 0.0153
GPU 219.2 182.80 0.0001 0.00001
GPU with HCP 35.0 933.59 0.1680 0.0153

Acknowledgments

This work was supported in part by NIH R01 grant GM076121 and by NSF I/UCRC grant IIP-0804155 with support from AMD.

Footnotes

*

Moore’s Law states that the number of transistors that can be inexpensively placed on an integrated circuit doubles every 24 months. This doubling in transistors typically translated into a corresponding performance improvement.

*

In this work, we consider only the lowest level-1 HCP. Higher levels of “multiscale” are achievable within the HCP, see Anandakrishnan et. al.25 for details.

Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final citable form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.

Contributor Information

Ramu Anandakrishnan, Email: ramu@cs.vt.edu.

Tom R. W. Scogland, Email: tom.scogland@vt.edu.

Andrew T. Fenley, Email: afenley@vt.edu.

John C. Gordon, Email: john.gordon@microsoft.com.

Wu-chun Feng, Email: feng@cs.vt.edu.

Alexey V. Onufriev, Email: alexey@cs.vt.edu.

References

  • 1.Perutz M. Electrostatic effects in proteins. Science. 1978;201:1187–1191. doi: 10.1126/science.694508. [DOI] [PubMed] [Google Scholar]
  • 2.Madura Jeffrey D, Davis Malcolm E, Gilson Michael K, Wade Rebecca C, Luty Brock A, Andrew McCammon J. Biological Applications of Electrostatic Calculations and Brownian Dynamics. Rev Comp Chem. 1994;5:229–267. [Google Scholar]
  • 3.Honig Barry, Nicholls Anthony. Classical Electrostatics in Biology and Chemistry. Science. 1995;268:1144–1149. doi: 10.1126/science.7761829. [DOI] [PubMed] [Google Scholar]
  • 4.Davis Malcom E, Andrew McCammon J. Electrostatics in Biomolecular Structure and Dynamics. Chem Rev. 1990;90:509–521. [Google Scholar]
  • 5.Baker NA, McCammon JA. Structural Bioinformatics. John Wiley & Sons, Inc.; New York: 2002. Electrostaic Interactions. [Google Scholar]
  • 6.Warshel Arieh, Åqvist Johan. Electrostatic Energy and Macromolecular Function. Ann Rev Biophys Biophys Chem. 1991;20:267–298. doi: 10.1146/annurev.bb.20.060191.001411. [DOI] [PubMed] [Google Scholar]
  • 7.Fersht AR, Shi JP, Knill-Jones J, Lowe DM, Wilkinson AJ, Blow DM, Brick P, Carter P, Waye MM, Winter G. Hydrogen bonding and biological specificity analysed by protein engineering. Nature. 1985;314:235–8. doi: 10.1038/314235a0. [DOI] [PubMed] [Google Scholar]
  • 8.Szabo G, Eisenman G, McLaughlin SGA, Krasne S. Ionic probes of membrane structures. In: Membrane Structure and Its Biological Applications. Ann N Y Acad Sci. 1972;195:273–290. doi: 10.1111/j.1749-6632.1972.tb54807.x. [DOI] [PubMed] [Google Scholar]
  • 9.Sheinerman FB, Norel R, Honig B. Electrostatic aspects of protein-protein interactions. Curr Opin Struct Biol. 2000;10(2):153–9. doi: 10.1016/s0959-440x(00)00065-8. [DOI] [PubMed] [Google Scholar]
  • 10.Onufriev Alexey, Smondyrev Alexander, Bashford Donald. Proton affinity changes during unidirectional proton transport in the bacteriorhodopsin photocycle. J Mol Biol. 2003;332:1183–1193. doi: 10.1016/s0022-2836(03)00903-3. [DOI] [PubMed] [Google Scholar]
  • 11.Yang An-Suei, Honig Barry. Electrostatic effects on protein stability. Curr Opin Struct Biol. 1992;2:40–45. [Google Scholar]
  • 12.Whitten Steven, Garcia-Moreno Bertrand. pH dependence of stability of staphyococcal nuclease: Evidence of substantial electrostatic interactions in denatured state. Biochemistry. 2000;39:14292–14304. doi: 10.1021/bi001015c. [DOI] [PubMed] [Google Scholar]
  • 13.Koehl Patrice. Electrostatics calculations: Latest methodological advances. Curr Opin Struct Biol. 2006 March;16(6):142–151. doi: 10.1016/j.sbi.2006.03.001. [DOI] [PubMed] [Google Scholar]
  • 14.Robertson Alex, Luttmann Edgar, Pande Vijay S. Effects of long-range electrostatic forces on simulated protein folding kinetics. Journal of Computational Chemistry. 2007;29(5):694–700. doi: 10.1002/jcc.20828. [DOI] [PubMed] [Google Scholar]
  • 15.Beck DAC, Armen RS, Daggett V. Cutoff size need not strongly influence molecular dynamics results for solvated polypeptides. Biochemistry. 2005 January;44(2):609–616. doi: 10.1021/bi0486381. [DOI] [PubMed] [Google Scholar]
  • 16.Ruvinsky Anatoly M, Vakser Ilya A. Interaction cutoff effect on ruggedness of protein-protein energy landscape. Proteins: Structure, Function, and Bioinformatics. 2008;70(4):1498–1505. doi: 10.1002/prot.21644. [DOI] [PubMed] [Google Scholar]
  • 17.Carrier J, Greengard L, Rokhlin V. A fast adaptive multipole algorithm for particle simulations. SIAM Journal on Scientific and Statistical Computing. 1988;9(4):669–686. [Google Scholar]
  • 18.Cai Wei, Deng Shaozhong, Jacobs Donald. Extending the fast multipole method to charges inside or outside a dielectric sphere. Journal of Computational Physics. 2007 May;223(2):846–864. doi: 10.1016/j.jcp.2007.09.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Lambert Christophe G, Darden Thomas A, Board John A., Jr A multipole-based algorithm for efficient calculation of forces and potentials in macroscopic periodic assemblies of particles. Journal of Computational Physics. 1996 July;126(2):274–285. [Google Scholar]
  • 20.Darden Tom, York Darrin, Pedersen Lee. Particle mesh Ewald: An N.log(N) method for Ewald sums in large systems. The Journal of Chemical Physics. 1993;98(12):10089–10092. [Google Scholar]
  • 21.Essmann Ulrich, Perera Lalith, Berkowitz Max L, Darden Tom, Lee Hsing, Pedersen Lee G. A smooth particle mesh Ewald method. The Journal of Chemical Physics. 1995;103(19):8577–8593. [Google Scholar]
  • 22.Toukmaji Abdulnour Y, Board John A. Ewald summation techniques in perspective: A survey. Computer Physics Communications. 1996 June;95(2-3):73–92. [Google Scholar]
  • 23.York Darrin, Yang Weitao. The fast fourier Poisson method for calculating Ewald sums. The Journal of Chemical Physics. 1994;101(4):3298–3300. [Google Scholar]
  • 24.Schlick T. Molecular modeling and simulation, an interdisciplinary guide. Springer-Verlag; New York: 2002. [Google Scholar]
  • 25.Anandakrishnan R, Onufriev AV. An n log n approximation based on the natural organization of biomolecules for speeding up the computation of long range interactions. Journal of Computational Chemistry. 2010;31(4):691–706. doi: 10.1002/jcc.21357. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Onufriev A. Implicit solvent models in molecular dynamics simulations. Annual Reports in Computational Chemistry. 2008;4:125–137. [Google Scholar]
  • 27.Los Alamos National Laboratory. mpiBLAST. http://mpiblast.lanl.gov/
  • 28.Konecny Robert, Trylska Joanna, Tama Florence, Zhang Deqiang, Baker Nathan A, Brooks Charles L, McCammon JA. Electrostatic properties of cowpea chlorotic mottle virus and cucumber mosaic virus capsids. Biopolymers. 2006 June;82(2):106–120. doi: 10.1002/bip.20409. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Baker NA, Sept D, Joseph S, Holst MJ, McCammon JA. Electrostatics of nanosystems: application to microtubules and the ribosome. Proc Natl Acad Sci U S A. 2001 Aug;98(18):10037–10041. doi: 10.1073/pnas.181342398. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Klepeis John L, Lindorff-Larsen Kresten, Dror Ron O, Shaw David E. Long-timescale molecular dynamics simulations of protein structure and function. Current Opinion in Structural Biology. 2009 April;19(2):120–127. doi: 10.1016/j.sbi.2009.03.004. [DOI] [PubMed] [Google Scholar]
  • 31.Ruscio Jory Z, Kumar Deept, Shukla Maulik, Prisant Michael G, Murali TM, Onufriev Alexey V. Atomic level computational identification of ligand migration pathways between solvent and binding site in myoglobin. Proc Natl Acad Sci USA. 2008;105(27):9204–9209. doi: 10.1073/pnas.0710825105. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Kumar S, Huang C, Zheng G, Bohm E, Bhatele A, Phillips JC, Yu H, Kalé LV. Scalable molecular dynamics with NAMD on the IBM Blue Gene/L system. IBM Journal of Research and Development. 2008;52(1/2):177–187. doi: 10.1147/jrd.2018.2888986. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Shaw David E, Deneroff Martin M, Dror Ron O, Kuskin Jeffrey S, Larson Richard H, Salmon John K, Young Cliff, Batson Brannon, Bowers Kevin J, Chao Jack C, Eastwood Michael P, Gagliardo Joseph, Grossman JP, Ho Richard C, Ierardi Douglas J, Kolossváry István, Klepeis John L, Layman Timothy, Mcleavey Christine, Moraes Mark A, Mueller Rolf, Priest Edward C, Shan Yibing, Spengler Jochen, Theobald Michael, Towles Brian, Wang Stanley C. Anton, a special-purpose machine for molecular dynamics simulation. Communications of the ACM. 2008;51(7):91–97. [Google Scholar]
  • 34.Zhou R, Eleftheriou M, Hon CC, Germain RS, Royyuru AK, Berne BJ. Massively parallel molecular dynamics simulations of lysozyme unfolding. IBM Journal of Research and Development. 2008;52(1/2):19. [Google Scholar]
  • 35.Moore G. Cramming more components onto integrated circuits. Electronics Magazine. 1965 April; [Google Scholar]
  • 36.Swaminarayan Sriram, Kadau Kai, Germann Timothy C, Fossum Gordon C. SC ’08: Proceedings of the 2008 ACM/IEEE conference on Supercomputing. Piscataway NJ USA: IEEE Press; 2008. 369 tflop/s molecular dynamics simulations on the roadrunner general-purpose heterogeneous supercomputer; pp. 1–10. [Google Scholar]
  • 37.Archuleta J, Cao Y, Feng W, Scogland T. Multi-dimensional characterization of temporal data mining on graphics processors. 23rd IEEE International Parallel and Distributed Processing Symposium. 2009 May; [Google Scholar]
  • 38.Dynerman David, Butzlaff Erick, Mitchell Julie C. CUSA and CUDE: GPU-Accelerated Methods for Estimating Solvent Accessible Surface Area and Desolvation. Journal of Computational Biology. 2009;16(4):523–537. doi: 10.1089/cmb.2008.0157. [DOI] [PubMed] [Google Scholar]
  • 39.Narumi Tetsu, Yasuoka Kenji, Taiji Makoto, Höfinger Siegfried. Current performance gains from utilizing the GPU or the ASIC MDGRAPE-3 within an enhanced Poisson Boltzmann approach. Journal of Computational Chemistry. 2009 doi: 10.1002/jcc.21257. [DOI] [PubMed] [Google Scholar]
  • 40.Ufimtsev Ivan S, Martinez Todd J. Quantum chemistry on graphical processing units. 1. Strategies for two-electron integral evaluation. Journal of Chemical Theory and Computation. 2008 February;4(2):222–231. doi: 10.1021/ct700268q. [DOI] [PubMed] [Google Scholar]
  • 41.Anderson Joshua A, Lorenz Chris D, Travesset A. General purpose molecular dynamics simulations fully implemented on graphics processing units. Journal of Computational Physics. 2008;227(10):5342–5359. [Google Scholar]
  • 42.Friedrichs Mark S, Eastman Peter, Vaidyanathan Vishal, Houston Mike, Legrand Scott, Beberg Adam L, Ensign Daniel L, Bruns Christopher M, Pande Vijay S. Accelerating molecular dynamic simulation on graphics processing units. Journal of Computational Chemistry. 2009;30(6):864–872. doi: 10.1002/jcc.21209. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Hardy David J, Stone John E, Schulten Klaus. Multilevel summation of electrostatic potentials using graphics processing units. Parallel Computing. 2009;35(3):164–177. doi: 10.1016/j.parco.2008.12.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Stone John E, Phillips James C, Freddolino Peter L, Hardy David J, Trabuco Leonardo G, Schulten Klaus. Accelerating molecular modeling applications with graphics processors. Journal of Computational Chemistry. 2007;28(16):2618–2640. doi: 10.1002/jcc.20829. [DOI] [PubMed] [Google Scholar]
  • 45.Gordon John C, Fenley Andrew T, Onufriev Alexey. An analytical approach to computing biomolecular electrostatic potential. II. Validation and applications. The Journal of Chemical Physics. 2008;129(7):075102. doi: 10.1063/1.2956499. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Sigalov G, Fenley A, Onufriev A. Analytical linearized Poisson-Boltzmann approach: Beyond the generalized Born approximation. J Chem Phys. 2006;124:124902. doi: 10.1063/1.2177251. [DOI] [PubMed] [Google Scholar]
  • 47.Fenley Andrew T, Gordon John C, Onufriev Alexey. An analytical approach to computing biomolecular electrostatic potential. I. Derivation and analysis. The Journal of Chemical Physics. 2008;129(7):075101. doi: 10.1063/1.2956497. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Sigalov G, Scheffel P, Onufriev A. Incorporating variable dielectric environments into the generalized born model. J Chem Phys. 2005 Mar;122(9):094511–094511. doi: 10.1063/1.1857811. [DOI] [PubMed] [Google Scholar]
  • 49.AMD/ATI. Brook+ http://sourceforge.net/projects/brookplus/
  • 50.Buck Ian, Foley Tim, Horn Daniel, Sugerman Jeremy, Fatahalian Kayvon, Houston Mike, Hanrahan Pat. Brook for GPUs: stream computing on graphics hardware. ACM Trans Graph. 2004;23(3):777–786. [Google Scholar]
  • 51.Advanced Micro Devices. ATI Stream Computing User Guide. 2009 March; [Google Scholar]
  • 52.Berman HM, Westbrook J, Feng Z, Gilliland G, Bhat TN, Weissig H, Shindyalov IN, Bourne PE. The protein data bank. Nucl Acids Res. 2000;28:235–242. doi: 10.1093/nar/28.1.235. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Gordon JC, Myers JB, Folta T, Shoja V, Heath LS, Onufriev AL. H++: a server for estimating pKa’s and adding missing hydrogens to macromolecules. Nucl Acids Res. 2005;33:68–71. doi: 10.1093/nar/gki464. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Bashford D, Gerwert K. Electrostatic calculations of the pKa values of ionizable groups in bacteriorhodopsin. J Mol Biol. 1992;224:473–486. doi: 10.1016/0022-2836(92)91009-e. [DOI] [PubMed] [Google Scholar]
  • 55.Sanner Michel F, Olson Arthur J, Spehner Jean Claude. Reduced surface: an efficient way to compute molecular surfaces. Biopolymers. 1996;38(3):305–320. doi: 10.1002/(SICI)1097-0282(199603)38:3%3C305::AID-BIP4%3E3.0.CO;2-Y. [DOI] [PubMed] [Google Scholar]
  • 56.Abagyan R. High-throughput docking for lead generation. Current Opinion in Chemical Biology. 2001 August;5(4):375–382. doi: 10.1016/s1367-5931(00)00217-9. [DOI] [PubMed] [Google Scholar]
  • 57.Teodoro Miguel L, Phillips George N, Jr, Kavraki Lydia E. Molecular docking: A problem with thousands of degrees of freedom. IEEE International Conference on Robotics and Automation. 2001:960–966. [Google Scholar]

RESOURCES