![]() |
(git:4a2d255)
|
#include "dbm_library.h"#include "dbm_matrix.h"#include "../mpiwrap/cp_mpi.h"#include "../offload/offload_library.h"#include "../offload/offload_mempool.h"#include <assert.h>#include <omp.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Functions | |
| static void | print_func (const char *msg, int msglen, int output_unit) |
| Wrapper for printf, passed to dbm_library_print_stats. | |
| static int | imin (int x, int y) |
| Returns the smaller of the two integers (missing from the C standard). | |
| static dbm_distribution_t * | create_dist (const int nrows, const int ncols, const cp_mpi_comm_t comm) |
| Private routine for creating a distribution. | |
| static dbm_matrix_t * | create_some_matrix (const int nrows, const int ncols, const int nrows_min, const int nrows_max, const int ncols_min, const int ncols_max, const cp_mpi_comm_t comm) |
| Private routine for creating a distribution and an empty matrix. | |
| static void | reserve_all_blocks (dbm_matrix_t *matrix) |
| Private routine for reserving all blocks of the given matrix. | |
| static void | set_all_blocks (dbm_matrix_t *matrix) |
| Private routine for setting all blocks. | |
| void | benchmark_multiply (const int M, const int N, const int K, const int m, const int n, const int k, const cp_mpi_comm_t comm) |
| Run a benchmark of dbm_multiply with given block sizes. | |
| int | main (int argc, char *argv[]) |
| Stand-alone miniapp for smoke-testing and benchmarking dbm_multiply. | |
|
static |
Wrapper for printf, passed to dbm_library_print_stats.
Definition at line 29 of file dbm_miniapp.c.
|
inlinestatic |
Returns the smaller of the two integers (missing from the C standard).
Definition at line 40 of file dbm_miniapp.c.
|
static |
Private routine for creating a distribution.
Definition at line 46 of file dbm_miniapp.c.
|
static |
Private routine for creating a distribution and an empty matrix.
Definition at line 75 of file dbm_miniapp.c.
|
static |
Private routine for reserving all blocks of the given matrix.
Definition at line 120 of file dbm_miniapp.c.
|
static |
Private routine for setting all blocks.
Definition at line 167 of file dbm_miniapp.c.
| void benchmark_multiply | ( | const int | M, |
| const int | N, | ||
| const int | K, | ||
| const int | m, | ||
| const int | n, | ||
| const int | k, | ||
| const cp_mpi_comm_t | comm | ||
| ) |
Run a benchmark of dbm_multiply with given block sizes.
Definition at line 188 of file dbm_miniapp.c.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Stand-alone miniapp for smoke-testing and benchmarking dbm_multiply.
Definition at line 252 of file dbm_miniapp.c.