Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / examples / smpi / MM / Matrix_init.h
1 /* Copyright (c) 2012, 2014. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <stdlib.h>
8 //#undef CYCLIC
9 #define CYCLIC
10 #undef SIMPLE_MATRIX
11 //#define SIMPLE_MATRIX
12
13 void matrices_initialisation(double ** p_a, double ** p_b, double ** p_c,
14                              size_t m, size_t k_a, size_t k_b, size_t n,
15                              size_t row, size_t col);
16 void matrices_allocation(double ** p_a, double ** p_b, double ** p_c,
17                          size_t m, size_t k_a, size_t k_b, size_t n);
18 void blocks_initialisation(double ** p_a_local, double ** p_b_local,
19                            size_t m, size_t B_k, size_t n);
20
21
22 void check_result(double *c, double *a, double *b,
23                   size_t m, size_t n, size_t k_a, size_t k_b,
24                   size_t row, size_t col,
25                   size_t size_row, size_t size_col);