TS8070
On this page

TS8070

Front-end code KERNEL_LOOP_ON_CPU

A warning on a loop of a kernel function (Rule 8.22) that the independence proof refused: the loop runs on the CPU. The message names the line and the names that stop it, and the remedy. The program is correct either way.

The registry has no documentation comment for this constant, so the line above is written by this site from the messages the compiler raises it with.

No example is written for this code at this commit yet.

The registry text and every compiler message on these pages are the compiler's own English.

The rules this enforces

Rule 8.22 Test
A kernel function is an exported function that is not an entry point, a function declaration, and takes at least one array with no size (array<T>) or one 2D storage texture (texture_storage_2d<F, A>, change 0077), or returns an array with no size that its body makes (Rule 8.23, change 0114, S5); a sampled texture alone does not make one, so an exported helper that reads one stays a helper an entry calls; its candidate loops are the for and for…of statements at the top level of its body, and no other loop is ever a candidate.
Rule 8.23 Test
A kernel function’s parameter of an array with no size is the caller’s array (change 0142): the body reads its elements and its .length, writes its elements in place, and cannot assign it whole (TS8018).

See also

Source

Where the compiler raises this code at commit af54ddad5, one line per file:

Edit this page Report a problem