![]() |
(git:d18deda)
|
#include <assert.h>
#include <omp.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../offload/offload_library.h"
#include "dbm_library.h"
#include "dbm_matrix.h"
#include "dbm_mpi.h"
Go to the source code of this file.
Functions | |
static void | print_func (char *message, 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 dbm_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 dbm_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 dbm_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 28 of file dbm_miniapp.c.
|
inlinestatic |
Returns the smaller of the two integers (missing from the C standard).
Definition at line 38 of file dbm_miniapp.c.
|
static |
Private routine for creating a distribution.
Definition at line 44 of file dbm_miniapp.c.
|
static |
Private routine for creating a distribution and an empty matrix.
Definition at line 72 of file dbm_miniapp.c.
|
static |
Private routine for reserving all blocks of the given matrix.
Definition at line 116 of file dbm_miniapp.c.
|
static |
Private routine for setting all blocks.
Definition at line 160 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 dbm_mpi_comm_t | comm | ||
) |
Run a benchmark of dbm_multiply with given block sizes.
Definition at line 185 of file dbm_miniapp.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Stand-alone miniapp for smoke-testing and benchmarking dbm_multiply.
Definition at line 245 of file dbm_miniapp.c.