#include <assert.h>
#include <inttypes.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dbm_library.h"
#include "dbm_mempool.h"
#include "dbm_mpi.h"
Go to the source code of this file.
◆ DBM_NUM_COUNTERS
#define DBM_NUM_COUNTERS 64 |
◆ dbm_library_init()
void dbm_library_init |
( |
void |
| ) |
|
Initializes the DBM library.
- Author
- Ole Schuett
Definition at line 33 of file dbm_library.c.
◆ dbm_library_finalize()
void dbm_library_finalize |
( |
void |
| ) |
|
Finalizes the DBM library.
- Author
- Ole Schuett
Definition at line 63 of file dbm_library.c.
◆ floorlog10()
static int floorlog10 |
( |
const int |
x | ) |
|
|
static |
Computes min(3, floor(log10(x))).
- Author
- Ole Schuett
Definition at line 85 of file dbm_library.c.
◆ dbm_library_counter_increment()
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.
- Author
- Ole Schuett
Definition at line 102 of file dbm_library.c.
◆ compare_counters()
static int compare_counters |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
|
static |
Comperator passed to qsort to compare two counters.
- Author
- Ole Schuett
Definition at line 113 of file dbm_library.c.
◆ dbm_library_print_stats()
void dbm_library_print_stats |
( |
const int |
fortran_comm, |
|
|
void(*)(char *, int) |
print_func, |
|
|
const int |
output_unit |
|
) |
| |
Prints statistics gathered by the DBM library.
- Author
- Ole Schuett
Definition at line 121 of file dbm_library.c.
◆ per_thread_counters
int64_t** per_thread_counters = NULL |
|
static |
◆ library_initialized
bool library_initialized = false |
|
static |
◆ max_threads