4 ms·
From my limited understanding: JITs can take into account the actual data being processed. And most importantly here, its size. Knowing the size will help wit
by BenoitP 10y ago
From my limited understanding:
JITs can take into account the actual data being processed. And most importantly here, its size.
Knowing the size will help with making chunks of work fit into L1, L2, L3 caches. Creating sensible SIMDs operations. Choosing what goes into a warp.
Also, sometimes it is better to rematerialize a computation than having stored it; and the threshold to do it depends on the space and computing costs.
Languages like Halide [1] let you hand-tune this threshold. I guess this is the kind of work XLA does here.
[1] http://halide-lang.org/ http://halide-lang.org/
- emu 10y agoPrecisely. Just-in-time compilation allows the compiler to specialize the generated code for the shapes of the Tensors that appear at run time. This allows us to generate better code. XLA also has an experimental ahead-of-time mode, which we think will be particularly interesting for some production and mobile deployments. This is all work in progress though, and we're looking forward to getting the community involved.