MPI-SCATCI 2.0
An MPI version of SCATCI
Loading...
Searching...
No Matches
BaseManager_module Module Reference

Base manager type. More...

Data Types

type  BaseManager
 This is a simple class to handle memory management tracking. More...

Functions/Subroutines

subroutine basemanager_ctor (this, total_memory)
 Type constructor.
subroutine init_memory (this, total_memory)
 Initialize memory.
subroutine track_memory (this, alloc_memory, error)
 Track memory.
subroutine free_memory (this, alloc_memory, error)
 Free memory.
integer(longint) function get_available_memory (this)
 Obtain available local memory.
integer(longint) function get_available_global_memory (this)
 Obtain available global memory.

Variables

type(basemanager), public memory_man

Detailed Description

Base manager type.

Authors
A Al-Refaie
Date
2017

This module contains the BaseManager class that is used to track all memory allocations within a single process, as of now it is fairly simple in implementation.

Note
16/01/2019 - Jakub Benda: Unifom coding style and expanded documentation.

Function/Subroutine Documentation

◆ basemanager_ctor()

subroutine BaseManager_module::basemanager_ctor ( class(basemanager) this,
integer(longint), intent(in) total_memory )
private

Type constructor.

Authors
A Al-Refaie
Date
2017

Definition at line 71 of file BaseManager_module.f90.

◆ free_memory()

subroutine BaseManager_module::free_memory ( class(basemanager) this,
integer(longint), intent(in) alloc_memory,
integer, intent(out) error )
private

Free memory.

Authors
A Al-Refaie
Date
2017

Definition at line 121 of file BaseManager_module.f90.

◆ get_available_global_memory()

integer(longint) function BaseManager_module::get_available_global_memory ( class(basemanager) this)
private

Obtain available global memory.

Authors
A Al-Refaie
Date
2017

Definition at line 154 of file BaseManager_module.f90.

◆ get_available_memory()

integer(longint) function BaseManager_module::get_available_memory ( class(basemanager) this)
private

Obtain available local memory.

Authors
A Al-Refaie
Date
2017

Definition at line 142 of file BaseManager_module.f90.

◆ init_memory()

subroutine BaseManager_module::init_memory ( class(basemanager) this,
integer(longint), intent(in) total_memory )
private

Initialize memory.

Authors
A Al-Refaie
Date
2017

Definition at line 86 of file BaseManager_module.f90.

◆ track_memory()

subroutine BaseManager_module::track_memory ( class(basemanager) this,
integer(longint), intent(in) alloc_memory,
integer, intent(out) error )
private

Track memory.

Authors
A Al-Refaie
Date
2017

Definition at line 100 of file BaseManager_module.f90.

Variable Documentation

◆ memory_man

type(basemanager), public BaseManager_module::memory_man

Definition at line 59 of file BaseManager_module.f90.