The parallel module provides tools aimed at parallel computing. At this point all parallel solutions use the fork system call and are supported on limited platforms, notably excluding Windows. On unsupported platforms parallel features will disable and a warning is printed.

class nutils.parallel.Fork(nprocs)[source]

nested fork context, unwinds at exit

class nutils.parallel.AlternativeFork(nprocs)[source]

single master, multiple slave fork context, unwinds at exit

nutils.parallel.fork(func, nice=19)[source]

fork and run (return value is lost)

nutils.parallel.shzeros(shape, dtype=<type 'float'>)[source]

create zero-initialized array in shared memory


iterate parallel