Open rotu opened 2 years ago
Returning an array from a kernel returns data full of NaN instead of the expected values.
NaN
When the GPU is created with {mode: "dev"} and the kernel code returns an array (e.g. return [1,2,3] instead of a single value return 2)
{mode: "dev"}
return [1,2,3]
return 2
run the tests in return-arrays.js with mode modified to be 'dev'.
return-arrays.js
Alternatively, see codepen here: https://codepen.io/rotu-the-bold/pen/LYLwBqy
3
In dev mode, the kernel should return the same value as in GPU mode.
What is wrong?
Returning an array from a kernel returns data full of
NaN
instead of the expected values.Where does it happen?
When the GPU is created with
{mode: "dev"}
and the kernel code returns an array (e.g.return [1,2,3]
instead of a single valuereturn 2
)How do we replicate the issue?
run the tests in
return-arrays.js
with mode modified to be 'dev'.Alternatively, see codepen here: https://codepen.io/rotu-the-bold/pen/LYLwBqy
How important is this (1-5)?
3
Expected behavior (i.e. solution)
In dev mode, the kernel should return the same value as in GPU mode.