#cudpp compaction how to do compaction of an array with flags in it


If i correctly understand what the compaction on GPU is:
Given array = 0000013200000754600000000076900
After compaction => new_array= 1327546769
I want to compact the array with zeros as delimiter/flags in it:
new_array = 132075460769
The purpose of zero is to show the end of a group of non-zero numbers.

Any one has any idea how to get it.