(git:0de0cc2)
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  ******************************************************************************/
16 void dbm_library_init(void);
17 
18 /*******************************************************************************
19  * \brief Finalizes the DBM library.
20  * \author Ole Schuett
21  ******************************************************************************/
22 void dbm_library_finalize(void);
23 
24 /*******************************************************************************
25  * \brief Add given block multiplication to stats. This routine is thread-safe.
26  * \author Ole Schuett
27  ******************************************************************************/
28 void 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  ******************************************************************************/
34 void 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.
Definition: dbm_library.c:101
void dbm_library_print_stats(const int fortran_comm, void(*print_func)(char *, int), const int output_unit)
Prints statistics gathered by the DBM library.
Definition: dbm_library.c:120
void dbm_library_init(void)
Initializes the DBM library.
Definition: dbm_library.c:34
void print_func(char *message, int output_unit)
Definition: grid_miniapp.c:21