(git:ccc2433)
|
#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. More... | |
static int | imin (int x, int y) |
Returns the smaller of two given integer (missing from the C standard) More... | |
static dbm_matrix_t * | create_some_matrix (const int nrows, const int ncols, const int row_size, const int col_size, const dbm_mpi_comm_t comm) |
Private routine for creating a distribution and an empty matrix. More... | |
static void | reserve_all_blocks (dbm_matrix_t *matrix) |
Private routine for reserving all blocks of the given matrix. More... | |
static void | set_all_blocks (dbm_matrix_t *matrix) |
Private routine for setting all blocks to 1.0. More... | |
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. More... | |
int | main (int argc, char *argv[]) |
Stand-alone miniapp for smoke-testing and benchmarking dbm_multiply. More... | |
|
static |
Wrapper for printf, passed to dbm_library_print_stats.
Definition at line 28 of file dbm_miniapp.c.
|
inlinestatic |
Returns the smaller of two given integer (missing from the C standard)
Definition at line 38 of file dbm_miniapp.c.
|
static |
Private routine for creating a distribution and an empty matrix.
Definition at line 44 of file dbm_miniapp.c.
|
static |
Private routine for reserving all blocks of the given matrix.
Definition at line 86 of file dbm_miniapp.c.
|
static |
Private routine for setting all blocks to 1.0.
Definition at line 129 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 150 of file dbm_miniapp.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Stand-alone miniapp for smoke-testing and benchmarking dbm_multiply.
Definition at line 197 of file dbm_miniapp.c.