Collective Variables Module - Developer Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
colvars_gpu::colvarcomp_gpu_graph Class Reference
Inheritance diagram for colvars_gpu::colvarcomp_gpu_graph:
Inheritance graph
[legend]
Collaboration diagram for colvars_gpu::colvarcomp_gpu_graph:
Collaboration graph
[legend]

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. More...
 
virtual int add_calc_gradients_node ()
 Calculate the atomic gradients, to be reused later in order to apply forces on GPU. More...
 
virtual int add_calc_force_invgrads_node ()
 Calculate the total force from the system using the inverse atomic gradients on GPU. More...
 
virtual int add_calc_Jacobian_derivative_node ()
 Calculate the divergence of the inverse atomic gradients on GPU. More...
 

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::cvccvc
 
colvarmodulecvmodule
 

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: