Full flattening of nested data parallelism