Enable parallel tests.
[hoomd-blue.git] / libhoomd / cuda / AllDriverPotentialPairGPU.cu
blob9175faafd43159455f20976756b354adce36643f
1 /*
2 Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
3 (HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of
4 the University of Michigan All rights reserved.
6 HOOMD-blue may contain modifications ("Contributions") provided, and to which
7 copyright is held, by various Contributors who have granted The Regents of the
8 University of Michigan the right to modify and/or distribute such Contributions.
10 You may redistribute, use, and create derivate works of HOOMD-blue, in source
11 and binary forms, provided you abide by the following conditions:
13 * Redistributions of source code must retain the above copyright notice, this
14 list of conditions, and the following disclaimer both in the code and
15 prominently in any materials provided with the distribution.
17 * Redistributions in binary form must reproduce the above copyright notice, this
18 list of conditions, and the following disclaimer in the documentation and/or
19 other materials provided with the distribution.
21 * All publications and presentations based on HOOMD-blue, including any reports
22 or published results obtained, in whole or in part, with HOOMD-blue, will
23 acknowledge its use according to the terms posted at the time of submission on:
24 http://codeblue.umich.edu/hoomd-blue/citations.html
26 * Any electronic documents citing HOOMD-Blue will link to the HOOMD-Blue website:
27 http://codeblue.umich.edu/hoomd-blue/
29 * Apart from the above required attributions, neither the name of the copyright
30 holder nor the names of HOOMD-blue's contributors may be used to endorse or
31 promote products derived from this software without specific prior written
32 permission.
34 Disclaimer
36 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' AND
37 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
38 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR ANY
39 WARRANTIES THAT THIS SOFTWARE IS FREE OF INFRINGEMENT ARE DISCLAIMED.
41 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
42 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
43 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
44 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
45 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
46 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
47 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50 // Maintainer: joaander / Everyone is free to add additional potentials
52 /*! \file AllDriverPotentialPairGPU.cu
53     \brief Defines the driver functions for computing all types of pair forces on the GPU
56 #include "EvaluatorPairLJ.h"
57 #include "EvaluatorPairGauss.h"
58 #include "EvaluatorPairSLJ.h"
59 #include "EvaluatorPairYukawa.h"
60 #include "EvaluatorPairMorse.h"
61 #include "PotentialPairDPDThermoGPU.cuh"
62 #include "EvaluatorPairDPDThermo.h"
63 #include "AllDriverPotentialPairGPU.cuh"
64 #include "EvaluatorPairEwald.h"
65 #include "EvaluatorPairMoliere.h"
66 #include "EvaluatorPairZBL.h"
67 #include "EvaluatorPairDPDLJThermo.h"
68 #include "EvaluatorPairForceShiftedLJ.h"
70 cudaError_t gpu_compute_ljtemp_forces(const pair_args_t& pair_args,
71                                       const Scalar2 *d_params)
72     {
73     return gpu_compute_pair_forces<EvaluatorPairLJ>(pair_args,
74                                                     d_params);
75     }
77 cudaError_t gpu_compute_gauss_forces(const pair_args_t& pair_args,
78                                      const Scalar2 *d_params)
79     {
80     return gpu_compute_pair_forces<EvaluatorPairGauss>(pair_args,
81                                                        d_params);
82     }
84 cudaError_t gpu_compute_slj_forces(const pair_args_t& pair_args,
85                                    const Scalar2 *d_params)
86     {
87     return gpu_compute_pair_forces<EvaluatorPairSLJ>(pair_args,
88                                                      d_params);
89     }
91 cudaError_t gpu_compute_yukawa_forces(const pair_args_t& pair_args,
92                                       const Scalar2 *d_params)
93     {
94     return gpu_compute_pair_forces<EvaluatorPairYukawa>(pair_args,
95                                                         d_params);
96     }
99 cudaError_t gpu_compute_morse_forces(const pair_args_t& pair_args,
100                                       const Scalar4 *d_params)
101     {
102     return gpu_compute_pair_forces<EvaluatorPairMorse>(pair_args,
103                                                        d_params);
104     }
106 cudaError_t gpu_compute_dpdthermodpd_forces(const dpd_pair_args_t& args,
107                                             const Scalar2 *d_params)
108     {
109     return gpu_compute_dpd_forces<EvaluatorPairDPDThermo>(args,
110                                                           d_params);
111     }
114 cudaError_t gpu_compute_dpdthermo_forces(const pair_args_t& pair_args,
115                                          const Scalar2 *d_params)
116     {
117     return gpu_compute_pair_forces<EvaluatorPairDPDThermo>(pair_args,
118                                                            d_params);
119     }
122 cudaError_t gpu_compute_ewald_forces(const pair_args_t& pair_args,
123                                      const Scalar *d_params)
124     {
125     return  gpu_compute_pair_forces<EvaluatorPairEwald>(pair_args,
126                                                         d_params);
127     }
129 cudaError_t gpu_compute_moliere_forces(const pair_args_t& pair_args,
130                                        const Scalar2 *d_params)
131     {
132     return gpu_compute_pair_forces<EvaluatorPairMoliere>(pair_args,
133                                                          d_params);
134     }
136 cudaError_t gpu_compute_zbl_forces(const pair_args_t& pair_args,
137                                    const Scalar2 *d_params)
138     {
139     return gpu_compute_pair_forces<EvaluatorPairZBL>(pair_args,
140                                                      d_params);
141     }
143 cudaError_t gpu_compute_dpdljthermodpd_forces(const dpd_pair_args_t& args,
144                                               const Scalar4 *d_params)
145     {
146     return gpu_compute_dpd_forces<EvaluatorPairDPDLJThermo>(args,
147                                                             d_params);
148     }
151 cudaError_t gpu_compute_dpdljthermo_forces(const pair_args_t& args,
152                                            const Scalar4 *d_params)
153     {
154     return gpu_compute_pair_forces<EvaluatorPairDPDLJThermo>(args,
155                                                              d_params);
156     }
158 cudaError_t gpu_compute_force_shifted_lj_forces(const pair_args_t & args,
159                                                 const Scalar2 *d_params)
160     {
161     return gpu_compute_pair_forces<EvaluatorPairForceShiftedLJ>(args,
162                                                                 d_params);
163     }