/[escript]/trunk/escriptcore/src/EscriptParams.cpp
ViewVC logotype

Diff of /trunk/escriptcore/src/EscriptParams.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC revision 2721 by jfenwick, Fri Oct 16 05:40:12 2009 UTC
# Line 28  EscriptParams::EscriptParams() Line 28  EscriptParams::EscriptParams()
28     autolazy=0;     autolazy=0;
29     too_many_levels=70;     too_many_levels=70;
30     too_many_nodes=15000;     too_many_nodes=15000;
31       resolve_collective=0;
32              // These #defs are for performance testing only              // These #defs are for performance testing only
33              // in general, I don't want people tweaking the              // in general, I don't want people tweaking the
34              // default value using compiler options              // default value using compiler options
# Line 38  EscriptParams::EscriptParams() Line 39  EscriptParams::EscriptParams()
39  #ifdef FAUTOLAZYOFF  #ifdef FAUTOLAZYOFF
40     autolazy=0;     autolazy=0;
41  #endif  #endif
42    
43    #ifdef FRESCOLLECTON
44       resolve_collective=1;
45    #endif
46    #ifdef FRESCOLLECTOFF
47       resolve_collective=0;
48    #endif
49    
50  }  }
51    
52  int  int
# Line 59  EscriptParams::getInt(const char* name, Line 68  EscriptParams::getInt(const char* name,
68     {     {
69      return too_many_nodes;      return too_many_nodes;
70     }     }
71       if (!strcmp(name,"RESOLVE_COLLECTIVE"))
72       {
73        return resolve_collective;
74       }
75     return sentinel;     return sentinel;
76  }  }
77        
# Line 81  EscriptParams::setInt(const char* name, Line 94  EscriptParams::setInt(const char* name,
94     {     {
95      too_many_nodes=value;      too_many_nodes=value;
96     }     }
97       if (!strcmp(name,"RESOLVE_COLLECTIVE"))
98       {
99        resolve_collective=value;
100       }
101  }  }
102    
103  void  void
# Line 97  getEscriptParamInt(const char* name, int Line 114  getEscriptParamInt(const char* name, int
114  }  }
115    
116  boost::python::list  boost::python::list
117  listEscriptParams()  EscriptParams::listEscriptParams()
118  {  {
119     using namespace boost::python;     using namespace boost::python;
120     boost::python::list l;     boost::python::list l;
121     l.append(make_tuple("TOO_MANY_LINES","Maximum number of lines to output when printing data before printing a summary instead."));     l.append(make_tuple("TOO_MANY_LINES", too_many_lines, "Maximum number of lines to output when printing data before printing a summary instead."));
122     l.append(make_tuple("AUTOLAZY","{0,1} Operations involving Expanded Data will create lazy results."));     l.append(make_tuple("AUTOLAZY", autolazy, "{0,1} Operations involving Expanded Data will create lazy results."));
123       l.append(make_tuple("RESOLVE_COLLECTIVE",resolve_collective ,"(TESTING ONLY) {0.1} Collective operations will resolve their data."));
124       l.append(make_tuple("TOO_MANY_LEVELS", too_many_levels, "(TESTING ONLY) maximum levels allowed in an expression."));
125       l.append(make_tuple("TOO_MANY_NODES", too_many_nodes, "(TESTING ONLY) maximum number of nodes in a expression."));
126     return l;     return l;
127  }  }
128    
129    
130    
131    
132  }   // end namespace  }   // end namespace

Legend:
Removed from v.2548  
changed lines
  Added in v.2721

  ViewVC Help
Powered by ViewVC 1.1.26