FV3 Bundle
memutils_mod Module Reference

Data Types

interface  memcpy
 

Functions/Subroutines

subroutine, public memutils_init (print_flag)
 
subroutine memcpy_r8 (lhs, rhs, dim, nelems, lhs_stride, rhs_stride)
 
subroutine memcpy_r8_gather (lhs, rhs, dim, nelems, lhs_stride, rhs_indx)
 
subroutine memcpy_r8_scatter (lhs, rhs, dim, nelems, lhs_indx, rhs_stride)
 
subroutine memcpy_r8_gather_scatter (lhs, rhs, dim, nelems, lhs_indx, rhs_indx)
 
integer(kind=8) function, public get_l1_cache_line (a)
 
integer(kind=8) function, public get_l2_cache_line (a)
 
subroutine, public print_memuse_stats (text, unit, always)
 
subroutine mem_dump (memuse)
 

Variables

integer(kind=8) l1_cache_line_size
 
integer(kind=8) l1_cache_size
 
integer(kind=8) l1_associativity
 
integer(kind=8) l2_cache_line_size
 
integer(kind=8) l2_cache_size
 
integer(kind=8) l2_associativity
 
logical memutils_initialized =.FALSE.
 
logical, private print_memory_usage =.FALSE.
 

Function/Subroutine Documentation

◆ get_l1_cache_line()

integer(kind=8) function, public memutils_mod::get_l1_cache_line ( real, intent(in)  a)

Definition at line 266 of file memutils.F90.

◆ get_l2_cache_line()

integer(kind=8) function, public memutils_mod::get_l2_cache_line ( real, intent(in)  a)

Definition at line 274 of file memutils.F90.

◆ mem_dump()

subroutine memutils_mod::mem_dump ( real, intent(out)  memuse)

Definition at line 322 of file memutils.F90.

Here is the caller graph for this function:

◆ memcpy_r8()

subroutine memutils_mod::memcpy_r8 ( real(kind=8), dimension(0:dim-1), intent(out)  lhs,
real(kind=8), dimension(0:dim-1), intent(in)  rhs,
integer, intent(in)  dim,
integer, intent(in), optional  nelems,
integer, intent(in), optional  lhs_stride,
integer, intent(in), optional  rhs_stride 
)
private

Definition at line 130 of file memutils.F90.

◆ memcpy_r8_gather()

subroutine memutils_mod::memcpy_r8_gather ( real(kind=8), dimension(0:dim-1), intent(out)  lhs,
real(kind=8), dimension(0:dim-1), intent(in)  rhs,
integer, intent(in)  dim,
integer, intent(in)  nelems,
integer, intent(in)  lhs_stride,
integer, dimension(nelems), intent(in)  rhs_indx 
)
private

Definition at line 165 of file memutils.F90.

◆ memcpy_r8_gather_scatter()

subroutine memutils_mod::memcpy_r8_gather_scatter ( real(kind=8), dimension(0:dim-1), intent(out)  lhs,
real(kind=8), dimension(0:dim-1), intent(in)  rhs,
integer, intent(in)  dim,
integer, intent(in)  nelems,
integer, dimension(nelems), intent(in)  lhs_indx,
integer, dimension(nelems), intent(in)  rhs_indx 
)
private

Definition at line 210 of file memutils.F90.

◆ memcpy_r8_scatter()

subroutine memutils_mod::memcpy_r8_scatter ( real(kind=8), dimension(0:dim-1), intent(out)  lhs,
real(kind=8), dimension(0:dim-1), intent(in)  rhs,
integer, intent(in)  dim,
integer, intent(in)  nelems,
integer, dimension(nelems), intent(in)  lhs_indx,
integer, intent(in)  rhs_stride 
)
private

Definition at line 187 of file memutils.F90.

◆ memutils_init()

subroutine, public memutils_mod::memutils_init ( logical, optional  print_flag)

Definition at line 55 of file memutils.F90.

Here is the caller graph for this function:

◆ print_memuse_stats()

subroutine, public memutils_mod::print_memuse_stats ( character(len=*), intent(in)  text,
integer, intent(in), optional  unit,
logical, intent(in), optional  always 
)

Definition at line 282 of file memutils.F90.

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

Variable Documentation

◆ l1_associativity

integer(kind=8) memutils_mod::l1_associativity
private

Definition at line 31 of file memutils.F90.

◆ l1_cache_line_size

integer(kind=8) memutils_mod::l1_cache_line_size
private

Definition at line 31 of file memutils.F90.

◆ l1_cache_size

integer(kind=8) memutils_mod::l1_cache_size
private

Definition at line 31 of file memutils.F90.

◆ l2_associativity

integer(kind=8) memutils_mod::l2_associativity
private

Definition at line 32 of file memutils.F90.

◆ l2_cache_line_size

integer(kind=8) memutils_mod::l2_cache_line_size
private

Definition at line 32 of file memutils.F90.

◆ l2_cache_size

integer(kind=8) memutils_mod::l2_cache_size
private

Definition at line 32 of file memutils.F90.

◆ memutils_initialized

logical memutils_mod::memutils_initialized =.FALSE.
private

Definition at line 34 of file memutils.F90.

◆ print_memory_usage

logical, private memutils_mod::print_memory_usage =.FALSE.
private

Definition at line 51 of file memutils.F90.