Revision 1848
Added by Aaron Marcuse-Kubitza almost 13 years ago
map | ||
---|---|---|
112 | 112 |
profiler = profiling.ItersProfiler(start_now=True, iter_text='row') |
113 | 113 |
|
114 | 114 |
try: import pp |
115 |
except ImportError: pass
|
|
116 |
else:
|
|
115 |
except ImportError: cpus = 0
|
|
116 |
if cpus != 0:
|
|
117 | 117 |
if cpus != None: args = [cpus] |
118 | 118 |
else: args = [] |
119 | 119 |
job_server = pp.Server(*args) |
Also available in: Unified diff
bin/map: If cpus is 0, run without Parallel Python