Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
I may be on vacation, but I don't like leaving a borken CVS behind me.... Ok, I admit...
[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 GRAS_DEFINE_TYPE(s_matrix,
18 struct s_matrix {
19   int rows;
20   int cols;
21   double *ctn GRAS_ANNOTE(size, rows*cols);
22 };)
23 typedef struct s_matrix matrix_t;
24
25 void mat_dump(matrix_t *mat, const char* name);
26
27 /* register messages which may be sent and their payload
28    (common to client and server) */
29 void mmrpc_register_messages(void);
30
31 /* Function prototypes */
32 int server (int argc,char *argv[]);
33 int client (int argc,char *argv[]);
34
35 #endif /* MMRPC_H */