(git:5a3db73)
Loading...
Searching...
No Matches
dbm_multiply_comm.h
Go to the documentation of this file.
1/*----------------------------------------------------------------------------*/
2/* CP2K: A general program to perform molecular dynamics simulations */
3/* Copyright 2000-2026 CP2K developers group <https://cp2k.org> */
4/* */
5/* SPDX-License-Identifier: BSD-3-Clause */
6/*----------------------------------------------------------------------------*/
7#ifndef DBM_MULTIPLY_COMM_H
8#define DBM_MULTIPLY_COMM_H
9
10#include "dbm_distribution.h"
11#include "dbm_internal.h"
12#include "dbm_matrix.h"
13
14#include <stdbool.h>
15
16/*******************************************************************************
17 * \brief Internal struct for storing a packed matrix.
18 * \author Ole Schuett
19 ******************************************************************************/
29
30/*******************************************************************************
31 * \brief Internal struct for storing a communication iterator.
32 * \author Ole Schuett
33 ******************************************************************************/
34typedef struct {
35 int nticks;
36 int itick;
40 double seconds_alltoall; // redistribution's communication (stats)
41 double seconds_sort; // redistribution's sorting of received blocks
42 int64_t bytes_alltoall; // sent by the redistribution (stats)
43 int64_t bytes_shift; // sent by the ticks (stats)
45
46/*******************************************************************************
47 * \brief Internal routine for creating a communication iterator.
48 * \author Ole Schuett
49 ******************************************************************************/
51 const bool transb,
52 const dbm_matrix_t *matrix_a,
53 const dbm_matrix_t *matrix_b,
54 const dbm_matrix_t *matrix_c,
55 const bool zero_copy);
56
57/*******************************************************************************
58 * \brief Internal routine for retrieving next pair of packs.
59 * \author Ole Schuett
60 ******************************************************************************/
62 dbm_pack_t **pack_b);
63
64/*******************************************************************************
65 * \brief Internal routine for releasing the given communication iterator.
66 * \author Ole Schuett
67 ******************************************************************************/
69
70#endif
71
72// EOF
void dbm_comm_iterator_stop(dbm_comm_iterator_t *iter)
Internal routine for releasing the given communication iterator.
bool dbm_comm_iterator_next(dbm_comm_iterator_t *iter, dbm_pack_t **pack_a, dbm_pack_t **pack_b)
Internal routine for retrieving next pair of packs.
dbm_comm_iterator_t * dbm_comm_iterator_start(const bool transa, const bool transb, const dbm_matrix_t *matrix_a, const dbm_matrix_t *matrix_b, const dbm_matrix_t *matrix_c, const bool zero_copy)
Internal routine for creating a communication iterator.
Internal struct for storing a communication iterator.
dbm_packed_matrix_t packed_a
dbm_distribution_t * dist
dbm_packed_matrix_t packed_b
Internal struct for storing a one dimensional distribution.
Internal struct for storing a two dimensional distribution.
Internal struct for storing a matrix.
Definition dbm_matrix.h:19
Internal struct for storing a pack - essentially a shard for MPI.
Internal struct for storing a packed matrix.
const dbm_dist_1d_t * dist_ticks
const dbm_dist_1d_t * dist_indices