Skip to content

adam_memory_nvf_library

ADAM, memory library.

Source: src/lib/nvf/adam_memory_nvf_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_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_1D_rhs_allocated, 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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varreal(kind=R8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I4P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I4P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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 3).

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

Arguments

NameTypeIntentAttributesDescription
varinteger(kind=I8P)inoutallocatable, deviceVaribale to be allocate on GPU.
ulbinteger(kind=I4P)inUpper/lower bounds of variable.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsreal(kind=R8P)inoutallocatable, deviceLeft hand side of assignement.
rhsreal(kind=R8P)inallocatableRight hand side of assignement.
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, transposed, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsreal(kind=R8P)inoutallocatable, deviceLeft hand side of assignement.
rhsreal(kind=R8P)inallocatableRight hand side of assignement.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsreal(kind=R8P)inoutallocatable, deviceLeft hand side of assignement.
rhsreal(kind=R8P)inallocatableRight hand side of assignement.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsreal(kind=R8P)inoutallocatable, deviceLeft hand side of assignement.
rhsreal(kind=R8P)inallocatableRight hand side of assignement.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I4P)inoutallocatable, deviceVaribale to be allocate on GPU.
rhsinteger(kind=I4P)inallocatableRight hand side of assignement.
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, rhs allocated).

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

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I4P)inoutallocatable, deviceVaribale to be allocate on GPU.
rhsainteger(kind=I4P)inRight hand side of assignement.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I4P)inoutallocatable, deviceLeft hand side of assignement.
rhsinteger(kind=I4P)inallocatableRight hand side of assignement.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I8P)inoutallocatable, deviceLeft hand side of assignement.
rhsinteger(kind=I8P)inallocatableRight hand side of assignement.
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, msg, verbose)

Arguments

NameTypeIntentAttributesDescription
lhsinteger(kind=I8P)inoutallocatable, deviceLeft hand side of assignement.
rhsinteger(kind=I8P)inallocatableRight hand side of assignement.
msgcharacter(len=*)inoptionalMessage to be printed in verbose mode.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

save_memory_gpu_status

Save the current CPU-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.