Neko  0.8.1
A portable framework for high-order spectral element flow simulations
pipecg_device Module Reference

Defines a pipelined Conjugate Gradient methods. More...

Data Types

type  pipecg_device_t
 Pipelined preconditioned conjugate gradient method. More...
 
interface  cuda_pipecg_vecops
 
interface  cuda_cg_update_xp
 

Functions/Subroutines

subroutine device_pipecg_vecops (p_d, q_d, r_d, s_d, u_d1, u_d2, w_d, z_d, ni_d, mi_d, alpha, beta, mult_d, reduction, n)
 
subroutine device_cg_update_xp (x_d, p_d, u_d_d, alpha, beta, p_cur, p_space, n)
 
subroutine pipecg_device_init (this, n, max_iter, M, rel_tol, abs_tol)
 Initialise a pipelined PCG solver. More...
 
subroutine pipecg_device_free (this)
 Deallocate a pipelined PCG solver. More...
 
type(ksp_monitor_t) function pipecg_device_solve (this, Ax, x, f, n, coef, blst, gs_h, niter)
 Pipelined PCG solve. More...
 

Variables

integer, parameter device_pipecg_p_space = 10
 

Detailed Description

Defines a pipelined Conjugate Gradient methods.

Function/Subroutine Documentation

◆ device_cg_update_xp()

subroutine pipecg_device::device_cg_update_xp ( type(c_ptr), value  x_d,
type(c_ptr), value  p_d,
type(c_ptr), value  u_d_d,
type(c_ptr), value  alpha,
type(c_ptr), value  beta,
integer(c_int)  p_cur,
integer(c_int)  p_space,
integer(c_int)  n 
)
private

Definition at line 156 of file pipecg_device.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ device_pipecg_vecops()

subroutine pipecg_device::device_pipecg_vecops ( type(c_ptr), value  p_d,
type(c_ptr), value  q_d,
type(c_ptr), value  r_d,
type(c_ptr), value  s_d,
type(c_ptr), value  u_d1,
type(c_ptr), value  u_d2,
type(c_ptr), value  w_d,
type(c_ptr), value  z_d,
type(c_ptr), value  ni_d,
type(c_ptr), value  mi_d,
real(c_rp)  alpha,
real(c_rp)  beta,
type(c_ptr), value  mult_d,
real(c_rp), dimension(3)  reduction,
integer(c_int)  n 
)
private

Definition at line 139 of file pipecg_device.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pipecg_device_free()

subroutine pipecg_device::pipecg_device_free ( class(pipecg_device_t), intent(inout)  this)
private

Deallocate a pipelined PCG solver.

Definition at line 236 of file pipecg_device.F90.

Here is the call graph for this function:

◆ pipecg_device_init()

subroutine pipecg_device::pipecg_device_init ( class(pipecg_device_t), intent(inout), target  this,
integer, intent(in)  n,
integer, intent(in)  max_iter,
class(pc_t), intent(inout), optional, target  M,
real(kind=rp), intent(inout), optional  rel_tol,
real(kind=rp), intent(inout), optional  abs_tol 
)
private

Initialise a pipelined PCG solver.

Definition at line 170 of file pipecg_device.F90.

Here is the call graph for this function:

◆ pipecg_device_solve()

type(ksp_monitor_t) function pipecg_device::pipecg_device_solve ( class(pipecg_device_t), intent(inout)  this,
class(ax_t), intent(inout)  Ax,
type(field_t), intent(inout)  x,
real(kind=rp), dimension(n), intent(inout)  f,
integer, intent(in)  n,
type(coef_t), intent(inout)  coef,
type(bc_list_t), intent(inout)  blst,
type(gs_t), intent(inout)  gs_h,
integer, intent(in), optional  niter 
)
private

Pipelined PCG solve.

Definition at line 327 of file pipecg_device.F90.

Here is the call graph for this function:

Variable Documentation

◆ device_pipecg_p_space

integer, parameter pipecg_device::device_pipecg_p_space = 10
private

Definition at line 51 of file pipecg_device.F90.