pub const STARPU_SCRATCH: starpu_data_access_mode = 4;Expand description
< A temporary buffer is allocated
for the task, but StarPU does not
enforce data consistency—i.e. each
device has its own buffer,
independently from each other (even
for CPUs), and no data transfer is
ever performed. This is useful for
temporary variables to avoid
allocating/freeing buffers inside
each task. Currently, no behavior is
defined concerning the relation with
the ::STARPU_R and ::STARPU_W modes
and the value provided at
registration — i.e., the value of
the scratch buffer is undefined at
entry of the codelet function. It
is being considered for future
extensions at least to define the
initial value. For now, data to be
used in ::STARPU_SCRATCH mode should
be registered with node -1 and a
See \ref ScratchData for more details.