The CPU version should avoid doing the copy between the new array and old array.
The CPU version should avoid doing the copy between the new array and old array.