How can I effectively remove null values ββfrom an array in parallel using CUDA. Information on the number of zero values ββis available in advance, which should simplify this task.
It is important that the numbers remain ordered, as in the original array, when copying to the resulting array.
Example:
An array will, for example, contain the following values: [0, 0, 19, 7, 0, 3, 5, 0, 0, 1] with additional information that 5 values ββare zeros. Then the desired end result will be another array containing: [19, 7, 3, 5, 1]
diver_182
source share