dec is now one dimensional and computed on the GPU, meaning the whole outer loop is calculated on the GPU