source: tol/tolsh/tests/matprod/config.tol

devel
Last change on this file was 6d7779d, checked in by Jorge Pérez <josp.jorge@…>, 18 years ago

initial import

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/* -*- mode: c++ -*- */
2
3/*
4  ststServerInfo --
5
6  Estructura para almacenar la informacion necesaria para comunicarse
7  con un servidor de calculo
8 */
9Struct _stServerInfo {
10  Text host;
11  Real port
12};
13
14/*
15   Conjunto de servers a utilizar en este ejemplo. Deberiamos
16   asegurarnos antes que los servidores estan ejecutandose.
17*/
18Set servers = [[
19                _stServerInfo("localhost", 40000),
20                _stServerInfo("localhost", 40001)
21                ]];
22
23Set paramTest = {
24
25  /*
26  Directorio de intercambio de datos. En este directorio se almacenan
27  los resultados parciales.
28 */
29  Text dataDir = If(ObjectExist("Text", "dataDir"), dataDir,
30                     If(OSUnix, "/tmp", "c:/temp"));
31
32  // Dimensiones del producto : C(MxN) = A(MxK)*B(KxN)
33  Real M = If(ObjectExist("Real", "M"), M, 700);
34  Real K = If(ObjectExist("Real", "K"), K, 700);
35  Real N = If(ObjectExist("Real", "N"), N, 700);
36
37  Set [[ M, N, K, dataDir ]]
38};
39
40WriteLn("Test configuration:");
41WriteLn("    M = "<<paramTest["M"]);
42WriteLn("    K = "<<paramTest["K"]);
43WriteLn("    N = "<<paramTest["N"]);
44WriteLn("    dataDir = "<<paramTest["dataDir"]);
Note: See TracBrowser for help on using the repository browser.