(git:374b731)
Loading...
Searching...
No Matches
dbm_library.h
Go to the documentation of this file.
1/*----------------------------------------------------------------------------*/
2/* CP2K: A general program to perform molecular dynamics simulations */
3/* Copyright 2000-2024 CP2K developers group <https://cp2k.org> */
4/* */
5/* SPDX-License-Identifier: BSD-3-Clause */
6/*----------------------------------------------------------------------------*/
7#ifndef DBM_LIBRARY_H
8#define DBM_LIBRARY_H
9
10#include "dbm_multiply.h"
11
12/*******************************************************************************
13 * \brief Initializes the DBM library.
14 * \author Ole Schuett
15 ******************************************************************************/
16void dbm_library_init(void);
17
18/*******************************************************************************
19 * \brief Finalizes the DBM library.
20 * \author Ole Schuett
21 ******************************************************************************/
22void dbm_library_finalize(void);
23
24/*******************************************************************************
25 * \brief Add given block multiplication to stats. This routine is thread-safe.
26 * \author Ole Schuett
27 ******************************************************************************/
28void dbm_library_counter_increment(const int m, const int n, const int k);
29
30/*******************************************************************************
31 * \brief Prints statistics gathered by the DBM library.
32 * \author Ole Schuett
33 ******************************************************************************/
34void dbm_library_print_stats(const int fortran_comm,
35 void (*print_func)(char *, int),
36 const int output_unit);
37
38#endif
39
40// EOF
void dbm_library_finalize(void)
Finalizes the DBM library.
Definition dbm_library.c:62
void dbm_library_counter_increment(const int m, const int n, const int k)
Add given block multiplication to stats. This routine is thread-safe.
void dbm_library_init(void)
Initializes the DBM library.
Definition dbm_library.c:34
static void print_func(char *message, int output_unit)
Wrapper for printf, passed to dbm_library_print_stats.
Definition dbm_miniapp.c:28
subroutine, public dbm_library_print_stats(mpi_comm, output_unit)
Print DBM library statistics.
Definition dbm_api.F:1513