Lines Matching full:threads
2 // RUN: env OMP_PLACES=threads %libomp-run 1 0
3 // RUN: env OMP_PLACES=threads %libomp-run 1 1
4 // RUN: env OMP_PLACES=threads %libomp-run 2 1
5 // RUN: env OMP_PLACES=threads %libomp-run 2 2
6 // RUN: env OMP_PLACES=threads %libomp-run 3 1
7 // RUN: env OMP_PLACES=threads %libomp-run 3 2
10 // The test requires topologies with sockets, cores, threads layers where
11 // the socket layer contains multiple threads.
51 place_list_t *threads, *openmp_places; in check_places() local
52 threads = topology_alloc_type_places(TOPOLOGY_OBJ_THREAD); in check_places()
54 if (threads->num_places <= 1) { in check_places()
59 if (nthreads + offset > threads->num_places) { in check_places()
60 printf("Only %d total hardware threads to execute on. Skipping test with " in check_places()
62 threads->num_places, nthreads, offset); in check_places()
68 fprintf(stderr, "error: OMP_PLACES must be set to threads!\n"); in check_places()
77 topology_free_places(threads); in check_places()