Collective Variables Module - Developer Documentation
Loading...
Searching...
No Matches
colvars_gpu::colvarcomp_gpu_graph Class Reference
Inheritance diagram for colvars_gpu::colvarcomp_gpu_graph:
Collaboration diagram for colvars_gpu::colvarcomp_gpu_graph:

Public Member Functions

 colvarcomp_gpu_graph (colvar::cvc *cvc_in, colvarmodule *cvmodule_in)
int reset_graphs ()
int calc_value_gpu (bool requires_lattice)
int calc_gradients_gpu (bool requires_lattice)
int calc_force_invgrads_gpu (bool requires_lattice)
int calc_Jacobian_derivative_gpu (bool requires_lattice)

Protected Member Functions

virtual int add_calc_value_node ()
 Calculate the variable on GPU.
virtual int add_calc_gradients_node ()
 Calculate the atomic gradients, to be reused later in order to apply forces on GPU.
virtual int add_calc_force_invgrads_node ()
 Calculate the total force from the system using the inverse atomic gradients on GPU.
virtual int add_calc_Jacobian_derivative_node ()
 Calculate the divergence of the inverse atomic gradients on GPU.

Protected Attributes

gpu_graph_t graph_total_force
gpu_graph_t graph_calc_value
gpu_graph_t graph_calc_gradients
gpu_graph_t graph_calc_Jacobian_derivative
colvar::cvc * cvc
colvarmodule * cvmodule

Member Function Documentation

◆ add_calc_force_invgrads_node()

virtual int colvars_gpu::colvarcomp_gpu_graph::add_calc_force_invgrads_node ( )
inlineprotectedvirtual

Calculate the total force from the system using the inverse atomic gradients on GPU.

Reimplemented in colvar::rmsd::rmsd_gpu_impl_t.

◆ add_calc_gradients_node()

virtual int colvars_gpu::colvarcomp_gpu_graph::add_calc_gradients_node ( )
inlineprotectedvirtual

Calculate the atomic gradients, to be reused later in order to apply forces on GPU.

Reimplemented in colvar::rmsd::rmsd_gpu_impl_t.

◆ add_calc_Jacobian_derivative_node()

virtual int colvars_gpu::colvarcomp_gpu_graph::add_calc_Jacobian_derivative_node ( )
inlineprotectedvirtual

Calculate the divergence of the inverse atomic gradients on GPU.

Reimplemented in colvar::rmsd::rmsd_gpu_impl_t.

◆ add_calc_value_node()

virtual int colvars_gpu::colvarcomp_gpu_graph::add_calc_value_node ( )
inlineprotectedvirtual

Calculate the variable on GPU.

Reimplemented in colvar::rmsd::rmsd_gpu_impl_t.


The documentation for this class was generated from the following files: