Appearance
adam_mpih_gmp_object
ADAM, MPI handler class definition, GMP backend.
Extend common mpih class adding GMP features.
Source: src/lib/gmp/adam_mpih_gmp_object.F90
Dependencies
Contents
Derived Types
mpih_gmp_object
MPI handler class, GMP backend.
Inheritance
Extends: mpih_object
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
myrank | integer(kind=I4P) | MPI rank process. | |
myrankstr | character(len=:) | allocatable | MPI rank process stringified. |
procs_number | integer(kind=I4P) | Number of MPI processes. | |
memory_avail | real(kind=R8P) | CPU memory available (GB) for each process. | |
error | integer(kind=I4P) | Error traping flag. | |
timing | real(kind=R8P) | Tic toc timing. | |
tictoc | integer(kind=I4P) | Next is tic or toc? | |
req_send_recv | integer(kind=I4P) | allocatable | MPI request receive flags. |
mydev | integer(kind=I4P) | My GPU rank. | |
myhos | integer(kind=I4P) | Host ID. | |
local_comm | integer(kind=I4P) | Local communicator. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
abort | pass(self) | Handy MPI abort wrapper. |
barrier | pass(self) | Handy MPI barrier wrapper. |
error_stop | pass(self) | Stop run with error output. |
finalize | pass(self) | Handy MPI finalize wrapper. |
print_message | pass(self) | Print a message on stdout with rank prefix. |
tictoc_timing | pass(self) | Return the last tic toc timing. |
tic | pass(self) | Start a tic toc timing. |
toc | pass(self) | Stop a tic toc timing. |
initialize | pass(self) | Initialize MPI handler data. |
description | pass(self) | Return pretty-printed object description. |
Subroutines
initialize
Initialize MPI handler data.
fortran
subroutine initialize(self, do_mpi_init, do_device_init)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(mpih_gmp_object) | inout | MPI handler. | |
do_mpi_init | logical | in | optional | Flag to activate MPI init call. |
do_device_init | logical | in | optional | Flag to activate device init call. |
Call graph
Functions
description
Return a pretty-formatted object description.
Attributes: pure
Returns: character(len=:)
fortran
function description(self) result(desc)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(mpih_gmp_object) | in | MPI handler. |
Call graph