Exemple #1
0
def iter_body(cp):
    tmpl = Template(iter_body_code, 'iter_body')
    NWARPS = NTHREADS / 32

    # TODO: detect this properly and use it
    chaos_used = False

    vars = globals()
    vars.update(locals())
    return tmpl.substitute(vars)
Exemple #2
0
def iter_body(cp):
    tmpl = Template(iter_body_code, 'iter_body')
    NWARPS = NTHREADS / 32

    # TODO: detect this properly and use it
    chaos_used = False

    vars = globals()
    vars.update(locals())
    return tmpl.substitute(vars)
Exemple #3
0
def iter_xf_body(cp, xfid, px):
    tmpl = Template(iter_xf_body_code, 'apply_xf_' + xfid)
    g = dict(globals())
    g.update(locals())
    return tmpl.substitute(g)
Exemple #4
0
def iter_xf_body(cp, xfid, px):
    tmpl = Template(iter_xf_body_code, 'apply_xf_'+xfid)
    g = dict(globals())
    g.update(locals())
    return tmpl.substitute(g)