Support for lowering collapse already exists within `genLoopNestClauses`, which is called when lowering taskloop. However, the TODO message still included the Collapse clause, so it was not activated. By removing this, it enables lowering of the Collapse clause in taskloop.
16 lines
538 B
Fortran
16 lines
538 B
Fortran
! When lowering Taskloop, it is possible for the TileSizes clause to be lowered, but this is not a supported clause.
|
|
! We should make sure that any use of Tilesizes with Taskloop is correctly rejected by the Semantics.
|
|
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
|
|
|
|
subroutine test
|
|
integer :: i, sum
|
|
|
|
!ERROR: TILE cannot follow TASKLOOP
|
|
!ERROR: SIZES clause is not allowed on the TASKLOOP directive
|
|
!$omp taskloop tile sizes(2)
|
|
do i=1,10
|
|
sum = sum + i
|
|
end do
|
|
!$omp end taskloop
|
|
end subroutine
|