diff options
Diffstat (limited to 'libgomp/omp.h.in')
-rw-r--r-- | libgomp/omp.h.in | 62 |
1 files changed, 46 insertions, 16 deletions
diff --git a/libgomp/omp.h.in b/libgomp/omp.h.in index 654a4d5..a183034 100644 --- a/libgomp/omp.h.in +++ b/libgomp/omp.h.in @@ -50,7 +50,8 @@ typedef enum omp_sched_t omp_sched_static = 1, omp_sched_dynamic = 2, omp_sched_guided = 3, - omp_sched_auto = 4 + omp_sched_auto = 4, + omp_sched_monotonic = 0x80000000U } omp_sched_t; typedef enum omp_proc_bind_t @@ -62,14 +63,32 @@ typedef enum omp_proc_bind_t omp_proc_bind_spread = 4 } omp_proc_bind_t; -typedef enum omp_lock_hint_t +typedef enum omp_sync_hint_t { - omp_lock_hint_none = 0, - omp_lock_hint_uncontended = 1, - omp_lock_hint_contended = 2, - omp_lock_hint_nonspeculative = 4, - omp_lock_hint_speculative = 8, -} omp_lock_hint_t; + omp_sync_hint_none = 0, + omp_lock_hint_none = omp_sync_hint_none, + omp_sync_hint_uncontended = 1, + omp_lock_hint_uncontended = omp_sync_hint_uncontended, + omp_sync_hint_contended = 2, + omp_lock_hint_contended = omp_sync_hint_contended, + omp_sync_hint_nonspeculative = 4, + omp_lock_hint_nonspeculative = omp_sync_hint_nonspeculative, + omp_sync_hint_speculative = 8, + omp_lock_hint_speculative = omp_sync_hint_speculative +} omp_sync_hint_t; + +typedef omp_sync_hint_t omp_lock_hint_t; + +typedef struct __attribute__((__aligned__ (sizeof (void *)))) omp_depend_t +{ + char __omp_depend_t__[2 * sizeof (void *)]; +} omp_depend_t; + +typedef enum omp_pause_resource_t +{ + omp_pause_soft = 1, + omp_pause_hard = 2 +} omp_pause_resource_t; #ifdef __cplusplus extern "C" { @@ -93,7 +112,7 @@ extern void omp_set_nested (int) __GOMP_NOTHROW; extern int omp_get_nested (void) __GOMP_NOTHROW; extern void omp_init_lock (omp_lock_t *) __GOMP_NOTHROW; -extern void omp_init_lock_with_hint (omp_lock_t *, omp_lock_hint_t) +extern void omp_init_lock_with_hint (omp_lock_t *, omp_sync_hint_t) __GOMP_NOTHROW; extern void omp_destroy_lock (omp_lock_t *) __GOMP_NOTHROW; extern void omp_set_lock (omp_lock_t *) __GOMP_NOTHROW; @@ -101,7 +120,7 @@ extern void omp_unset_lock (omp_lock_t *) __GOMP_NOTHROW; extern int omp_test_lock (omp_lock_t *) __GOMP_NOTHROW; extern void omp_init_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; -extern void omp_init_nest_lock_with_hint (omp_nest_lock_t *, omp_lock_hint_t) +extern void omp_init_nest_lock_with_hint (omp_nest_lock_t *, omp_sync_hint_t) __GOMP_NOTHROW; extern void omp_destroy_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; extern void omp_set_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; @@ -144,19 +163,30 @@ extern int omp_get_max_task_priority (void) __GOMP_NOTHROW; extern void *omp_target_alloc (__SIZE_TYPE__, int) __GOMP_NOTHROW; extern void omp_target_free (void *, int) __GOMP_NOTHROW; -extern int omp_target_is_present (void *, int) __GOMP_NOTHROW; -extern int omp_target_memcpy (void *, void *, __SIZE_TYPE__, __SIZE_TYPE__, - __SIZE_TYPE__, int, int) __GOMP_NOTHROW; -extern int omp_target_memcpy_rect (void *, void *, __SIZE_TYPE__, int, +extern int omp_target_is_present (const void *, int) __GOMP_NOTHROW; +extern int omp_target_memcpy (void *, const void *, __SIZE_TYPE__, + __SIZE_TYPE__, __SIZE_TYPE__, int, int) + __GOMP_NOTHROW; +extern int omp_target_memcpy_rect (void *, const void *, __SIZE_TYPE__, int, const __SIZE_TYPE__ *, const __SIZE_TYPE__ *, const __SIZE_TYPE__ *, const __SIZE_TYPE__ *, const __SIZE_TYPE__ *, int, int) __GOMP_NOTHROW; -extern int omp_target_associate_ptr (void *, void *, __SIZE_TYPE__, +extern int omp_target_associate_ptr (const void *, const void *, __SIZE_TYPE__, __SIZE_TYPE__, int) __GOMP_NOTHROW; -extern int omp_target_disassociate_ptr (void *, int) __GOMP_NOTHROW; +extern int omp_target_disassociate_ptr (const void *, int) __GOMP_NOTHROW; + +extern void omp_set_affinity_format (const char *) __GOMP_NOTHROW; +extern __SIZE_TYPE__ omp_get_affinity_format (char *, __SIZE_TYPE__) + __GOMP_NOTHROW; +extern void omp_display_affinity (const char *) __GOMP_NOTHROW; +extern __SIZE_TYPE__ omp_capture_affinity (char *, __SIZE_TYPE__, const char *) + __GOMP_NOTHROW; + +extern int omp_pause_resource (omp_pause_resource_t, int) __GOMP_NOTHROW; +extern int omp_pause_resource_all (omp_pause_resource_t) __GOMP_NOTHROW; #ifdef __cplusplus } |