Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
6ed5807a37a2daf8c16b83231dd399a4dc64e8a8
[simgrid.git] / examples / gras / mmrpc / mmrpc.h
1 /* $Id$ */
2
3 /* GridRPC - Fake Grid RPC thingy doing matrix multiplications (as expected)*/
4
5 /* Copyright (c) 2005 Martin Quinson. All rights reserved.                  */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #ifndef MMRPC_H
11 #define MMRPC_H
12
13 #include "gras.h"
14
15 #define MATSIZE 128
16
17 void mat_dump(matrix_t *mat, const char* name);
18
19 /* register messages which may be sent and their payload
20    (common to client and server) */
21 void mmrpc_register_messages(void);
22
23 /* Function prototypes */
24 int server (int argc,char *argv[]);
25 int client (int argc,char *argv[]);
26
27 GRAS_DEFINE_TYPE(s_matrix,
28 struct s_matrix {
29   int rows;
30   int cols;
31   double *ctn GRAS_ANNOTE(size, rows*cols);
32 };)
33 typedef struct s_matrix matrix_t;
34
35 #endif /* MMRPC_H */