2#ifndef STORMM_VALENCE_POTENTIAL_CUH
3#define STORMM_VALENCE_POTENTIAL_CUH
6# include <cuda_runtime.h>
9#include "Accelerator/core_kernel_manager.h"
10#include "Accelerator/gpu_details.h"
11#include "Constants/behavior.h"
12#include "Constants/fixed_precision.h"
13#include "DataTypes/stormm_vector_types.h"
14#include "MolecularMechanics/mm_controls.h"
15#include "Potential/energy_enumerators.h"
16#include "Synthesis/atomgraph_synthesis.h"
17#include "Synthesis/phasespace_synthesis.h"
18#include "Synthesis/synthesis_abstracts.h"
19#include "Synthesis/synthesis_enumerators.h"
20#include "Trajectory/thermostat.h"
21#include "cacheresource.h"
22#include "energy_enumerators.h"
28using card::GpuDetails;
29using card::CoreKlManager;
30using constants::PrecisionModel;
31using mm::MMControlKit;
32using mm::MolecularMechanicsControls;
33using numerics::AccumulationMethod;
34using synthesis::AtomGraphSynthesis;
35using synthesis::PhaseSpaceSynthesis;
36using synthesis::PsSynthesisWriter;
37using synthesis::SyAtomUpdateKit;
38using synthesis::SyRestraintKit;
39using synthesis::SyValenceKit;
40using synthesis::VwuGoal;
41using trajectory::Thermostat;
42using trajectory::ThermostatWriter;
57int2 testValenceKernelSubdivision(
const int max_threads,
const int smp_count,
const int vwu_size,
74queryValenceKernelRequirementsXL(EvaluateForce eval_frc, EvaluateEnergy eval_nrg,
75 AccumulationMethod acc_meth, VwuGoal purpose,
76 ClashResponse collision_handling);
79queryValenceKernelRequirementsLG(EvaluateForce eval_frc, EvaluateEnergy eval_nrg,
80 AccumulationMethod acc_meth, VwuGoal purpose,
81 ClashResponse collision_handling);
84queryValenceKernelRequirementsMD(EvaluateForce eval_frc, EvaluateEnergy eval_nrg,
85 AccumulationMethod acc_meth, VwuGoal purpose,
86 ClashResponse collision_handling);
89queryValenceKernelRequirementsSM(EvaluateForce eval_frc, EvaluateEnergy eval_nrg,
90 AccumulationMethod acc_meth, VwuGoal purpose,
91 ClashResponse collision_handling);
94queryValenceKernelRequirementsD(EvaluateForce eval_frc, EvaluateEnergy eval_nrg,
95 VwuGoal purpose, ClashResponse collision_handling);
98queryValenceKernelRequirementsFPME(EvaluateEnergy eval_nrg, AccumulationMethod acc_meth,
99 ClashResponse collision_handling, PrecisionModel neighbor_prec);
102queryValenceKernelRequirementsFPMEDual(EvaluateEnergy eval_nrg, AccumulationMethod acc_meth,
103 ClashResponse collision_handling,
104 PrecisionModel neighbor_prec);
107queryValenceKernelRequirementsDPME(EvaluateEnergy eval_nrg, ClashResponse collision_handling,
108 PrecisionModel neighbor_prec);
111queryValenceKernelRequirementsDPMEDual(EvaluateEnergy eval_nrg, ClashResponse collision_handling,
112 PrecisionModel neighbor_prec);
115queryValenceKernelRequirements(PrecisionModel prec, EvaluateForce eval_frc,
116 EvaluateEnergy eval_nrg, AccumulationMethod acc_meth,
117 VwuGoal purpose, ClashResponse collision_handling,
118 ValenceKernelSize kwidth,
bool pme_compatible =
false,
119 PrecisionModel neighbor_prec = PrecisionModel::SINGLE,
120 NeighborListKind neighbor_layout = NeighborListKind::MONO);
123queryPmeValenceKernelRequirements(PrecisionModel prec, PrecisionModel neighbor_prec,
124 EvaluateForce eval_frc, EvaluateEnergy eval_nrg,
125 AccumulationMethod acc_meth, ClashResponse clash_handling);
173 EvaluateEnergy eval_energy, VwuGoal purpose,
const int2 bt,
174 double clash_distance = 0.0,
double clash_ratio = 0.0);
182 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
183 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
191 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
192 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
200 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
201 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
209 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
210 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
218 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
219 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
228 EvaluateEnergy eval_energy, VwuGoal purpose,
const int2 bt,
229 double clash_distance = 0.0,
double clash_ratio = 0.0);
238 EvaluateEnergy eval_energy, VwuGoal purpose,
const int2 bt,
239 double clash_distance = 0.0,
double clash_ratio = 0.0);
248 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
249 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
258 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
259 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
269 EvaluateEnergy eval_energy, VwuGoal purpose,
const int2 bt,
270 double clash_distance = 0.0,
double clash_ratio = 0.0);
280 EvaluateEnergy eval_energy, VwuGoal purpose,
const int2 bt,
281 double clash_distance = 0.0,
double clash_ratio = 0.0);
291 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
292 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
302 EvaluateEnergy eval_energy, VwuGoal purpose, AccumulationMethod force_sum,
303 const int2 bt,
float clash_distance = 0.0,
float clash_ratio = 0.0);
308 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
310 double clash_distance = 0.0,
double clash_ratio = 0.0);
315 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
317 double clash_ratio = 0.0);
323 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
325 double clash_distance = 0.0,
double clash_ratio = 0.0);
331 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
333 double clash_ratio = 0.0);
340 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
342 double clash_distance = 0.0,
double clash_ratio = 0.0);
349 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
351 double clash_ratio = 0.0);
357 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
359 double clash_distance = 0.0,
double clash_ratio = 0.0);
365 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
367 double clash_ratio = 0.0);
374 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
376 double clash_distance = 0.0,
double clash_ratio = 0.0);
383 EvaluateForce eval_force, EvaluateEnergy eval_energy, VwuGoal purpose,
385 double clash_ratio = 0.0);
A class to guide the implementation of GPU kernels, with selected thread counts per block and block c...
Definition core_kernel_manager.h:56
An object to hold temporary data for a particular work unit (whether bonded or non-bonded),...
Definition cacheresource.h:63
An object to manage the spatial decomposition of a system of particles. The general strategy is to ar...
Definition cellgrid.h:562
Track the energy components of a collection of systems in an HPC-capable array. This object uses the ...
Definition scorecard.h:101
A collection of contol data for molecular mechanics simulations, conveying the current step number,...
Definition mm_controls.h:100
A collection of one or more AtomGraph objects, with similar components arranged in contiguous arrays ...
Definition atomgraph_synthesis.h:55
A fixed-precision representation of coordinates, velocities, and forces to manage a set of simulation...
Definition phasespace_synthesis.h:325
Store the parameters for a simulation thermostat. Includes Berendsen, Andersen, and Langevin methods....
Definition thermostat.h:221
Abstract for the CacheResource object, accessible as a C-style struct and suitable for passing to GPU...
Definition cacheresource.h:17
Read-only abstract for the CellGrid object. This is unused in typical MD applications,...
Definition cellgrid.h:296
Writeable abstract for the ScoreCard object, useful for accumulating energies in many kernels.
Definition scorecard.h:64
The C-style, always writeable abstract for the MolecularMechanicsControls object. To not be able to m...
Definition mm_controls.h:52
The writer for a PhaseSpaceSynthesis object, containing all of the data relevant for propagating dyna...
Definition phasespace_synthesis.h:87
Collect the virtual site details and constraint parameters of the topology synthesis into a single ab...
Definition synthesis_abstracts.h:257
Collect the critical restraint parameters and masking information for work unit-based evaluation of t...
Definition synthesis_abstracts.h:100
Collect the critical valence parameters and indexing information for work unit-based evaluation of th...
Definition synthesis_abstracts.h:19
Partially writeable abstract for the Thermostat object. As with the MMControlKit struct (see the libr...
Definition thermostat.h:58