(git:be2a531)
Loading...
Searching...
No Matches
message_passing.F File Reference

Go to the source code of this file.

Data Types

type  message_passing::mp_comm_type
type  message_passing::mp_request_type
type  message_passing::mp_win_type
type  message_passing::mp_file_type
type  message_passing::mp_info_type
type  message_passing::mp_cart_type
type  message_passing::mp_para_env_type
 stores all the informations relevant to an mpi environment More...
type  message_passing::mp_para_env_p_type
 represent a pointer to a para env (to build arrays) More...
type  message_passing::mp_para_cart_type
 represent a multidimensional parallel environment More...
type  message_passing::mp_split_type
interface  message_passing::mp_waitall
interface  message_passing::mp_testall
interface  message_passing::mp_testany
interface  message_passing::mp_allocate
interface  message_passing::mp_deallocate
interface  message_passing::mp_type_make
type  message_passing::mp_type_descriptor_type
type  message_passing::mp_file_descriptor_type

Modules

module  message_passing
 Interface to the message passing library MPI.

Macros

#define MPI_DATA_TYPE   INTEGER
#define MPI_COMM_TYPE   INTEGER
#define MPI_REQUEST_TYPE   INTEGER
#define MPI_WIN_TYPE   INTEGER
#define MPI_FILE_TYPE   INTEGER
#define MPI_INFO_TYPE   INTEGER
#define MPI_STATUS_TYPE   INTEGER, DIMENSION(MPI_STATUS_SIZE)
#define MPI_GROUP_TYPE   INTEGER
#define MPI_STATUS_EXTRACT(X)
#define MPI_GET_COMP

Functions/Subroutines

subroutine, public message_passing::mp_query_thread_level ()
 Query the MPI thread-support level when MPI is managed by an embedding application.
subroutine, public message_passing::mp_world_init (mp_comm)
 initializes the system default communicator
subroutine, public message_passing::mp_world_finalize ()
 Finalize the system default communicator and MPI when CP2K owns MPI.
subroutine, public message_passing::mp_abort ()
 globally stops all tasks this is intended to be low level, most of CP2K should call cp_abort()
subroutine, public message_passing::mp_para_env_create (para_env, group)
 creates a new para environment
subroutine, public message_passing::mp_para_env_release (para_env)
 releases the para object (to be called when you don't want anymore the shared copy of this object)
subroutine, public message_passing::mp_para_cart_create (cart, group)
 creates a cart (multidimensional parallel environment)
subroutine, public message_passing::mp_para_cart_release (cart)
 releases the given cart
subroutine, public message_passing::mp_dims_create (nodes, dims)
 wrapper to MPI_Dims_create
subroutine, public message_passing::mp_waitany (requests, completed)
 waits for completion of any of the given requests
subroutine, public message_passing::mp_mem_avail_per_rank_gb (comm, mem_avail_gb)
 Memory that is currently free on the node, per MPI rank of that node, in GB.
subroutine, public message_passing::mp_mem_used_per_rank_gb (comm, mem_used_gb)
 Memory that is currently occupied by this process, in GB, maximized over all ranks of comm, such that every rank ends up with the same, most pessimistic figure.
subroutine, public message_passing::mp_print_mem_per_rank (comm, unit_nr, label)
 Prints the memory available to and used by a single MPI rank at the moment of the call. Collective on comm; only ranks with unit_nr > 0 write.
subroutine, public message_passing::mp_get_library_version (version, resultlen)
 Get Version of the MPI Library (MPI 3).
subroutine, public message_passing::mp_file_delete (filepath, info)
 Deletes a file. Auxiliary routine to emulate 'replace' action for mp_file_open. Only the master processor should call this routine.
subroutine, public message_passing::mp_type_size (type_descriptor, type_size)
 Returns the size of a data type in bytes.
type(mp_file_descriptor_type) function, public message_passing::mp_file_type_hindexed_make_chv (count, lengths, displs)
 Creates an indexed MPI type for arrays of strings using bytes for spacing (hindexed type).
subroutine, public message_passing::mp_file_type_set_view_chv (fh, offset, type_descriptor)
 Uses a previously created indexed MPI character type to tell the MPI processes how to partition (set_view) an opened file.
subroutine, public message_passing::mp_file_type_free (type_descriptor)
 Releases the type used for MPI I/O.
subroutine, public message_passing::mp_file_get_amode (mpi_io, replace, amode, form, action, status, position)
 (parallel) Utility routine to determine MPI file access mode based on variables
type(mp_type_descriptor_type) function, public message_passing::mp_type_indexed_make_d (count, lengths, displs)
 ...
type(mp_type_descriptor_type) function, public message_passing::mp_type_indexed_make_r (count, lengths, displs)
 ...
type(mp_type_descriptor_type) function, public message_passing::mp_type_indexed_make_z (count, lengths, displs)
 ...
type(mp_type_descriptor_type) function, public message_passing::mp_type_indexed_make_c (count, lengths, displs)
 ...

Variables

logical, parameter, public message_passing::cp2k_is_parallel = .FALSE.
integer, parameter, public message_passing::mp_any_tag = -1
integer, parameter, public message_passing::mp_any_source = -2
integer, parameter, public message_passing::mp_status_size = -9
integer, parameter, public message_passing::mp_proc_null = -10
integer, parameter, public message_passing::mp_max_library_version_string = 1
integer, parameter, public message_passing::file_offset = int_8
integer, parameter, public message_passing::address_kind = int_8
integer, parameter, public message_passing::file_amode_create = 1
integer, parameter, public message_passing::file_amode_rdonly = 2
integer, parameter, public message_passing::file_amode_wronly = 4
integer, parameter, public message_passing::file_amode_rdwr = 8
integer, parameter, public message_passing::file_amode_excl = 64
integer, parameter, public message_passing::file_amode_append = 128
integer, parameter, public message_passing::mpi_character_size = 1
integer, parameter, public message_passing::mpi_integer_size = 4
type(mp_comm_type), parameter, public message_passing::mp_comm_null = mp_comm_type(mp_comm_null_handle)
type(mp_comm_type), parameter, public message_passing::mp_comm_self = mp_comm_type(mp_comm_self_handle)
type(mp_comm_type), parameter, public message_passing::mp_comm_world = mp_comm_type(mp_comm_world_handle)
type(mp_request_type), parameter, public message_passing::mp_request_null = mp_request_type(mp_request_null_handle)
type(mp_win_type), parameter, public message_passing::mp_win_null = mp_win_type(mp_win_null_handle)
type(mp_file_type), parameter, public message_passing::mp_file_null = mp_file_type(mp_file_null_handle)
type(mp_info_type), parameter, public message_passing::mp_info_null = mp_info_type(mp_info_null_handle)
type(mp_split_type), parameter, public message_passing::mp_comm_split_type_shared = mp_split_type(mp_comm_split_type_shared_id, mp_info_null)
integer, parameter, public message_passing::mp_comm_ident = 0
integer, parameter, public message_passing::mp_comm_congruent = 1
integer, parameter, public message_passing::mp_comm_similar = 2
integer, parameter, public message_passing::mp_comm_unequal = 3
integer, parameter, public message_passing::mp_comm_compare_default = -1
integer, parameter message_passing::intlen = BIT_SIZE(0)/8
logical, save, public message_passing::mp_collect_timings = .FALSE.

Macro Definition Documentation

◆ MPI_DATA_TYPE

#define MPI_DATA_TYPE   INTEGER

◆ MPI_COMM_TYPE

#define MPI_COMM_TYPE   INTEGER

◆ MPI_REQUEST_TYPE

#define MPI_REQUEST_TYPE   INTEGER

◆ MPI_WIN_TYPE

#define MPI_WIN_TYPE   INTEGER

◆ MPI_FILE_TYPE

#define MPI_FILE_TYPE   INTEGER

◆ MPI_INFO_TYPE

#define MPI_INFO_TYPE   INTEGER

◆ MPI_STATUS_TYPE

#define MPI_STATUS_TYPE   INTEGER, DIMENSION(MPI_STATUS_SIZE)

◆ MPI_GROUP_TYPE

#define MPI_GROUP_TYPE   INTEGER

◆ MPI_STATUS_EXTRACT

#define MPI_STATUS_EXTRACT ( X)
Value:
1(x)

◆ MPI_GET_COMP

#define MPI_GET_COMP