Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.c/lib-2.c @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children |
line wrap: on
line source
#include <stdlib.h> #include <omp.h> int main (void) { omp_sched_t kind; int modifier; omp_set_schedule (omp_sched_static, 32); omp_get_schedule (&kind, &modifier); if (kind != omp_sched_static || modifier != 32) abort (); omp_set_schedule (omp_sched_guided, 4); omp_get_schedule (&kind, &modifier); if (kind != omp_sched_guided || modifier != 4) abort (); if (omp_get_thread_limit () < 0) abort (); omp_set_max_active_levels (6); if (omp_get_max_active_levels () != 6) abort (); return 0; }