blob: 279f2d1297d1c94dc2c7514d48f65ff906a2b50c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* For copyright information, see olden_v1.0/COPYRIGHT */
#ifdef SS_PLAIN
#include "ssplain.h"
#else SS_PLAIN
#include <cm/cmmd.h>
#include <fcntl.h>
extern int __NumNodes;
#endif SS_PLAIN
#include "tree.h"
void filestuff()
{
#ifndef SS_PLAIN
CMMD_fset_io_mode(stdout, CMMD_independent);
fcntl(fileno(stdout), F_SETFL, O_APPEND);
if (CMMD_self_address()) exit(0);
__InitRegs(0);
#endif SS_PLAIN
}
int level;
int iters;
int dealwithargs(int argc, char *argv[])
{
#ifndef SS_PLAIN
if (argc > 3)
__NumNodes = atoi(argv[2]);
else
__NumNodes = 4;
#endif SS_PLAIN
if (argc > 2)
iters = atoi(argv[2]);
else
iters = 1;
if (argc > 1)
level = atoi(argv[1]);
else
level = 5;
return level;
}
|