| 1 |
.. _jit-help: |
| 2 |
|
| 3 |
======== |
| 4 |
JIT help |
| 5 |
======== |
| 6 |
|
| 7 |
.. note:: this is from ``pypy --jit help`` |
| 8 |
|
| 9 |
Advanced JIT options |
| 10 |
==================== |
| 11 |
|
| 12 |
``<pypy> --jit`` [*options*] where *options* is a comma-separated list of |
| 13 |
``OPTION=VALUE``: |
| 14 |
|
| 15 |
decay=N |
| 16 |
amount to regularly decay counters by (0=none, 1000=max) (default 40). This |
| 17 |
value is used to reduce the JIT counters every 32 minor collections, |
| 18 |
according to the formula ``val *= 1.0 - (decay / 1000)``. This avoids JIT |
| 19 |
compilation of rare paths even on long-running programs. |
| 20 |
|
| 21 |
disable_unrolling=N |
| 22 |
after how many operations we should not unroll (default 200) |
| 23 |
|
| 24 |
enable_opts=N |
| 25 |
INTERNAL USE ONLY (MAY NOT WORK OR LEAD TO CRASHES): optimizations to |
| 26 |
enable, or all = |
| 27 |
intbounds:rewrite:virtualize:string:pure:earlyforce:heap:unroll (default |
| 28 |
all) |
| 29 |
|
| 30 |
function_threshold=N |
| 31 |
number of times a function must run for it to become traced from start |
| 32 |
(default 1619) |
| 33 |
|
| 34 |
inlining=N |
| 35 |
inline python functions or not (1/0) (default 1) |
| 36 |
|
| 37 |
loop_longevity=N |
| 38 |
a parameter controlling how long loops will be kept before being freed, |
| 39 |
an estimate (default 1000) |
| 40 |
|
| 41 |
max_retrace_guards=N |
| 42 |
number of extra guards a retrace can cause (default 15) |
| 43 |
|
| 44 |
max_unroll_loops=N |
| 45 |
number of extra unrollings a loop can cause (default 0) |
| 46 |
|
| 47 |
max_unroll_recursion=N |
| 48 |
how many levels deep to unroll a recursive function (default 7) |
| 49 |
|
| 50 |
retrace_limit=N |
| 51 |
how many times we can try retracing before giving up (default 0) |
| 52 |
|
| 53 |
threshold=N |
| 54 |
number of times a loop has to run for it to become hot (default 1039) |
| 55 |
|
| 56 |
trace_eagerness=N |
| 57 |
number of times a guard has to fail before we start compiling a bridge |
| 58 |
(default 200) |
| 59 |
|
| 60 |
trace_limit=N |
| 61 |
number of recorded operations before we abort tracing with ABORT_TOO_LONG |
| 62 |
(default 6000) |
| 63 |
|
| 64 |
vec=N |
| 65 |
turn on the vectorization optimization (vecopt). Supports x86 (SSE 4.1), |
| 66 |
powerpc (SVX), s390x SIMD (default 0) |
| 67 |
|
| 68 |
vec_all=N |
| 69 |
try to vectorize trace loops that occur outside of the numpypy library |
| 70 |
(default 0) |
| 71 |
|
| 72 |
vec_cost=N |
| 73 |
threshold for which traces to bail. Unpacking increases the counter, |
| 74 |
vector operation decrease the cost (default 0) |
| 75 |
|
| 76 |
off |
| 77 |
turn off the JIT |
| 78 |
help |
| 79 |
print this page |
| 80 |
|
| 81 |
The :ref:`pypyjit<jit-hooks>` module can be used to control the JIT from inside |
| 82 |
pypy |
| 83 |
|