blob: bd91e51d41be0ebe448ee9a5c2e5a0c8cc4e4a9d [file] [log] [blame]
/* For copyright information, see olden_v1.0/COPYRIGHT */
#ifndef TORONTO
#include <cm/cmmd.h>
#include <fcntl.h>
#endif
#ifdef TORONTO
int NumNodes;
#else
extern int __NumNodes;
#endif
extern int atoi(const char *);
#ifndef TORONTO
void filestuff()
{
CMMD_fset_io_mode(stdout, CMMD_independent);
fcntl(fileno(stdout), F_SETFL, O_APPEND);
if (CMMD_self_address()) exit(0);
__InitRegs(0);
}
#endif
int dealwithargs(int argc, char *argv[])
{
int level;
#ifdef TORONTO
if (argc > 2)
NumNodes = atoi(argv[2]);
else
NumNodes = 4;
#else
if (argc > 2)
__NumNodes = atoi(argv[2]);
else
__NumNodes = 4;
#endif
if (argc > 1)
level = atoi(argv[1]);
else
level = 16;
return level;
}