Skip to content

adam_memory_gmp_library

ADAM, GMP memory handling library.

Source: src/lib/gmp/adam_memory_gmp_library.F90

Dependencies

Contents

Interfaces

alloc_var_gpu

Allocate GPU variable with memory checking.

Module procedures: alloc_var_gpu_R8P_1D, alloc_var_gpu_R8P_2D, alloc_var_gpu_R8P_3D, alloc_var_gpu_R8P_4D, alloc_var_gpu_R8P_5D, alloc_var_gpu_R8P_6D, alloc_var_gpu_I4P_1D, alloc_var_gpu_I4P_2D, alloc_var_gpu_I4P_5D, alloc_var_gpu_I8P_1D, alloc_var_gpu_I8P_2D, alloc_var_gpu_I8P_3D

assign_allocatable_gpu

Assign GPU variable with memory checking.

Module procedures: assign_allocatable_gpu_R8P_1D, assign_allocatable_gpu_R8P_2D, assign_allocatable_gpu_R8P_3D, assign_allocatable_gpu_R8P_4D, assign_allocatable_gpu_I4P_1D, assign_allocatable_gpu_I4P_5D, assign_allocatable_gpu_I8P_2D, assign_allocatable_gpu_I8P_3D

transpose_a

Module procedures: transpose_a_R8P_2D

Subroutines

alloc_var_gpu_R8P_1D

Allocate GPU variable with memory checking (kind R8P, rank 1).

fortran
subroutine alloc_var_gpu_R8P_1D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valreal(kind=R8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_R8P_2D

Allocate GPU variable with memory checking (kind R8P, rank 2).

fortran
subroutine alloc_var_gpu_R8P_2D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valreal(kind=R8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_R8P_3D

Allocate GPU variable with memory checking (kind R8P, rank 3).

fortran
subroutine alloc_var_gpu_R8P_3D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valreal(kind=R8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_R8P_4D

Allocate GPU variable with memory checking (kind R8P, rank 4).

fortran
subroutine alloc_var_gpu_R8P_4D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valreal(kind=R8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_R8P_5D

Allocate GPU variable with memory checking (kind R8P, rank 5).

fortran
subroutine alloc_var_gpu_R8P_5D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valreal(kind=R8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_R8P_6D

Allocate GPU variable with memory checking (kind R8P, rank 6).

fortran
subroutine alloc_var_gpu_R8P_6D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valreal(kind=R8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_I4P_1D

Allocate GPU variable with memory checking (kind I4P, rank 1).

fortran
subroutine alloc_var_gpu_I4P_1D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I4P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valinteger(kind=I4P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_I4P_2D

Allocate GPU variable with memory checking (kind I4P, rank 2).

fortran
subroutine alloc_var_gpu_I4P_2D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I4P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valinteger(kind=I4P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_I4P_5D

Allocate GPU variable with memory checking (kind I4P, rank 5).

fortran
subroutine alloc_var_gpu_I4P_5D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I4P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valinteger(kind=I4P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_I8P_1D

Allocate GPU variable with memory checking (kind I8P, rank 1).

fortran
subroutine alloc_var_gpu_I8P_1D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valinteger(kind=I8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_I8P_2D

Allocate GPU variable with memory checking (kind I8P, rank 2).

fortran
subroutine alloc_var_gpu_I8P_2D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valinteger(kind=I8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

alloc_var_gpu_I8P_3D

Allocate GPU variable with memory checking (kind I8P, rank 2).

fortran
subroutine alloc_var_gpu_I8P_3D(var, ulb, omp_dev, init_val, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I8P)inoutpointerVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
omp_devinteger(kind=I4P)inOpenMP device ID.
init_valinteger(kind=I8P)inoptionalInitialization value.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_R8P_1D

Assign GPU variable with memory checking (kind R8P, rank 1). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_R8P_1D(lhs, rhs, omp_dev, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsreal(kind=R8P)inoutpointerLeft hand side of assignement.
rhsreal(kind=R8P)inallocatable, targetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_R8P_2D

Assign GPU variable with memory checking (kind R8P, rank 2). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_R8P_2D(lhs, rhs, omp_dev, transposed, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsreal(kind=R8P)inoutpointerLeft hand side of assignement.
rhsreal(kind=R8P)inallocatable, targetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
transposedlogicalinoptionalAssign trasposed rhs.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_R8P_3D

Assign GPU variable with memory checking (kind R8P, rank 3). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_R8P_3D(lhs, rhs, omp_dev, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsreal(kind=R8P)inoutpointerLeft hand side of assignement.
rhsreal(kind=R8P)inallocatable, targetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_R8P_4D

Assign GPU variable with memory checking (kind R8P, rank 4). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_R8P_4D(lhs, rhs, omp_dev, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsreal(kind=R8P)inoutpointerLeft hand side of assignement.
rhsreal(kind=R8P)inallocatable, targetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_I4P_1D

Assign GPU variable with memory checking (kind I4P, rank 1). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_I4P_1D(lhs, rhs, omp_dev, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I4P)inoutpointerLeft hand side of assignement.
rhsinteger(kind=I4P)inallocatable, targetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_I4P_1D_rhs_allocated

Assign GPU variable with memory checking (kind I4P, rank 1). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_I4P_1D_rhs_allocated(lhs, rhsa, omp_dev, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I4P)inoutpointerLeft hand side of assignement.
rhsainteger(kind=I4P)intargetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_I4P_5D

Assign GPU variable with memory checking (kind I4P, rank 5). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_I4P_5D(lhs, rhs, omp_dev, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I4P)inoutpointerLeft hand side of assignement.
rhsinteger(kind=I4P)inallocatable, targetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_I8P_2D

Assign GPU variable with memory checking (kind I8P, rank 2). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_I8P_2D(lhs, rhs, omp_dev, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I8P)inoutpointerLeft hand side of assignement.
rhsinteger(kind=I8P)inallocatable, targetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

assign_allocatable_gpu_I8P_3D

Assign GPU variable with memory checking (kind I8P, rank 3). Variable is returned not allocated if right hand side is not allocated.

fortran
subroutine assign_allocatable_gpu_I8P_3D(lhs, rhs, omp_dev, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I8P)inoutpointerLeft hand side of assignement.
rhsinteger(kind=I8P)inallocatable, targetRight hand side of assignement.
omp_devinteger(kind=I4P)inFlag to activate verbose mode.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

save_memory_gpu_status

Save the current GPU-memory status into a file. File is accessed in append position.

fortran
subroutine save_memory_gpu_status(file_name, tag)

Arguments

NameTypeIntentAttributesDescription
file_namecharacter(len=*)inFile name.
tagcharacter(len=*)inoptionalTag of current status.

Call graph

transpose_a_R8P_2D

Transpose array (kind R8P, rank 2).

fortran
subroutine transpose_a_R8P_2D(ii, jj, a, t)

Arguments

NameTypeIntentAttributesDescription
iiinteger(kind=I4P)inArray bounds.
jjinteger(kind=I4P)inArray bounds.
areal(kind=R8P)inInput array.
treal(kind=R8P)outTransposed array.