1/* 2 * Copyright (c) 2014 ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group. 8 */ 9#include <bomp_internal.h> 10 11/* 12 * This functions implement the SECTIONS construct 13 * 14 * #pragma omp sections 15 * { 16 * #pragma omp section 17 * stmt1; 18 * #pragma omp section 19 * stmt2; 20 * #pragma omp section 21 * stmt3; 22 * } 23 * becomes 24 * 25 * for (i = GOMP_sections_start (3); i != 0; i = GOMP_sections_next ()) 26 * switch (i) { 27 * case 1: 28 * stmt1; 29 * break; 30 * case 2: 31 * stmt2; 32 * break; 33 * case 3: 34 * stmt3; 35 * break; 36 * } 37 * 38 * GOMP_barrier (); 39 */ 40 41unsigned GOMP_sections_start(unsigned count) 42{ 43 assert(!"NYI"); 44 return 0; 45} 46 47unsigned GOMP_sections_next(void) 48{ 49 assert(!"NYI"); 50 return 0; 51} 52 53void GOMP_parallel_sections_start(void (*fn)(void *), 54 void *data, 55 unsigned num_threads, 56 unsigned count) 57{ 58 assert(!"NYI"); 59} 60 61void GOMP_parallel_sections(void (*fn)(void *), 62 void *data, 63 unsigned num_threads, 64 unsigned count, 65 unsigned flags) 66{ 67 assert(!"NYI"); 68} 69 70void GOMP_sections_end(void) 71{ 72 assert(!"NYI"); 73} 74 75bool GOMP_sections_end_cancel(void) 76{ 77 78 assert(!"NYI"); 79 return 0; 80} 81 82void GOMP_sections_end_nowait(void) 83{ 84 assert(!"NYI"); 85} 86