lib4.f90 552 B

1234567891011121314151617
  1. ! { dg-do run }
  2. program lib4
  3. use omp_lib
  4. integer (omp_sched_kind) :: kind
  5. integer :: modifier
  6. call omp_set_schedule (omp_sched_static, 32)
  7. call omp_get_schedule (kind, modifier)
  8. if (kind.ne.omp_sched_static.or.modifier.ne.32) call abort
  9. call omp_set_schedule (omp_sched_dynamic, 4)
  10. call omp_get_schedule (kind, modifier)
  11. if (kind.ne.omp_sched_dynamic.or.modifier.ne.4) call abort
  12. if (omp_get_thread_limit ().lt.0) call abort
  13. call omp_set_max_active_levels (6)
  14. if (omp_get_max_active_levels ().ne.6) call abort
  15. end program lib4