changed stats::gpu implementation to support interleved use