dbcsr_data_methods Module

DBCSR data methods



Variables

Type Visibility Attributes Name Initial
character(len=*), private, parameter :: moduleN = 'dbcsr_data_methods'
logical, private, parameter :: careful_mod = .FALSE.
integer, private, SAVE :: id = 0

Subroutines

public subroutine dbcsr_data_host2dev(area)

Transfers data from host- to device-buffer, asynchronously.

Arguments

Type IntentOptional Attributes Name
type(dbcsr_data_obj), intent(inout) :: area

public subroutine dbcsr_data_dev2host(area)

Transfers data from device- to host-buffer, asynchronously.

Arguments

Type IntentOptional Attributes Name
type(dbcsr_data_obj), intent(inout) :: area

public subroutine dbcsr_data_new(area, data_type, data_size, data_size2, memory_type)

Initializes a data area and all the actual data pointers

Arguments

Type IntentOptional Attributes Name
type(dbcsr_data_obj), intent(inout) :: area

data area

integer, intent(in) :: data_type

select data type to use

integer, intent(in), optional :: data_size

allocate this much data second dimension data size

integer, intent(in), optional :: data_size2

allocate this much data second dimension data size

type(dbcsr_memtype_type), intent(in), optional :: memory_type

type of memory to use

public subroutine dbcsr_data_ensure_size(area, data_size, nocopy, zero_pad, factor, area_resize)

Ensures a minimum size of a previously-setup data area. The data area must have been previously setup with dbcsr_data_new.

Arguments

Type IntentOptional Attributes Name
type(dbcsr_data_obj), intent(inout) :: area

data area

integer, intent(in) :: data_size

allocate this much data

logical, intent(in), optional :: nocopy

do not keep potentially existing data, default is to keep it pad new data with zeros

logical, intent(in), optional :: zero_pad

do not keep potentially existing data, default is to keep it pad new data with zeros

real(kind=dp), intent(in), optional :: factor

increase size by this factor

type(dbcsr_data_obj), intent(inout), optional :: area_resize

public subroutine dbcsr_data_release(area)

Removes a reference and/or clears the data area.

Arguments

Type IntentOptional Attributes Name
type(dbcsr_data_obj), intent(inout) :: area

data area