~ubuntu-branches/ubuntu/raring/simgrid/raring

« back to all changes in this revision

Viewing changes to examples/gras/mmrpc/mmrpc_common.c

  • Committer: Package Import Robot
  • Author(s): Martin Quinson
  • Date: 2013-01-31 00:24:51 UTC
  • mfrom: (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130131002451-krejhf7w7h24lpsc
Tags: 3.9~rc1-1
* New upstream release: the "Grasgory" release. Major changes:
  - Gras was completely removed from this version.
  - Documentation reorganization to ease browsing it.
  - New default value for the TCP_gamma parameter: 4MiB

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* GridRPC - Fake Grid RPC thingy doing matrix multiplications (as expected)*/
2
 
 
3
 
/* Copyright (c) 2006, 2007, 2009, 2010. The SimGrid Team.
4
 
 * All rights reserved.                                                     */
5
 
 
6
 
/* This program is free software; you can redistribute it and/or modify it
7
 
 * under the terms of the license (GNU LGPL) which comes with this package. */
8
 
 
9
 
#include "mmrpc.h"
10
 
 
11
 
XBT_LOG_NEW_DEFAULT_CATEGORY(MatMult, "Messages specific to this example");
12
 
 
13
 
/* register messages which may be sent and their payload
14
 
   (common to client and server) */
15
 
void mmrpc_register_messages(void)
16
 
{
17
 
  xbt_datadesc_type_t matrix_type, request_type;
18
 
 
19
 
  matrix_type =
20
 
      xbt_datadesc_matrix(xbt_datadesc_by_name("double"), NULL);
21
 
  request_type =
22
 
      xbt_datadesc_array_fixed("s_matrix_t(double)[2]", matrix_type, 2);
23
 
 
24
 
  gras_msgtype_declare("answer", matrix_type);
25
 
  gras_msgtype_declare("request", request_type);
26
 
}