cancel-do-1.f90 259 B

123456789101112131415
  1. ! { dg-do run }
  2. ! { dg-set-target-env-var OMP_CANCELLATION "true" }
  3. use omp_lib
  4. integer :: i
  5. !$omp parallel num_threads(32)
  6. !$omp do
  7. do i = 0, 999
  8. !$omp cancel do
  9. if (omp_get_cancellation ()) call abort
  10. enddo
  11. !$omp endparallel
  12. end