1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3
4use std::os::raw::*;
5pub enum omp_nest_lock_t {}
6pub enum omp_lock_t {}
7
8pub const omp_sched_t_omp_sched_static: omp_sched_t = 1;
9pub const omp_sched_t_omp_sched_dynamic: omp_sched_t = 2;
10pub const omp_sched_t_omp_sched_guided: omp_sched_t = 3;
11pub const omp_sched_t_omp_sched_auto: omp_sched_t = 4;
12pub type omp_sched_t = c_uint;
13pub const omp_proc_bind_t_omp_proc_bind_false: omp_proc_bind_t = 0;
14pub const omp_proc_bind_t_omp_proc_bind_true: omp_proc_bind_t = 1;
15pub const omp_proc_bind_t_omp_proc_bind_master: omp_proc_bind_t = 2;
16pub const omp_proc_bind_t_omp_proc_bind_close: omp_proc_bind_t = 3;
17pub const omp_proc_bind_t_omp_proc_bind_spread: omp_proc_bind_t = 4;
18pub type omp_proc_bind_t = c_uint;
19pub const omp_lock_hint_t_omp_lock_hint_none: omp_lock_hint_t = 0;
20pub const omp_lock_hint_t_omp_lock_hint_uncontended: omp_lock_hint_t = 1;
21pub const omp_lock_hint_t_omp_lock_hint_contended: omp_lock_hint_t = 2;
22pub const omp_lock_hint_t_omp_lock_hint_nonspeculative: omp_lock_hint_t = 4;
23pub const omp_lock_hint_t_omp_lock_hint_speculative: omp_lock_hint_t = 8;
24pub type omp_lock_hint_t = c_uint;
25
26extern "C" {
27 pub fn omp_set_num_threads(arg1: c_int);
28 pub fn omp_get_num_threads() -> c_int;
29 pub fn omp_get_max_threads() -> c_int;
30 pub fn omp_get_thread_num() -> c_int;
31 pub fn omp_get_num_procs() -> c_int;
32 pub fn omp_in_parallel() -> c_int;
33 pub fn omp_set_dynamic(arg1: c_int);
34 pub fn omp_get_dynamic() -> c_int;
35 pub fn omp_set_nested(arg1: c_int);
36 pub fn omp_get_nested() -> c_int;
37 pub fn omp_init_lock(arg1: *mut omp_lock_t);
38 pub fn omp_init_lock_with_hint(arg1: *mut omp_lock_t, arg2: omp_lock_hint_t);
39 pub fn omp_destroy_lock(arg1: *mut omp_lock_t);
40 pub fn omp_set_lock(arg1: *mut omp_lock_t);
41 pub fn omp_unset_lock(arg1: *mut omp_lock_t);
42 pub fn omp_test_lock(arg1: *mut omp_lock_t) -> c_int;
43 pub fn omp_init_nest_lock(arg1: *mut omp_nest_lock_t);
44 pub fn omp_init_nest_lock_with_hint(arg1: *mut omp_lock_t, arg2: omp_lock_hint_t);
45 pub fn omp_destroy_nest_lock(arg1: *mut omp_nest_lock_t);
46 pub fn omp_set_nest_lock(arg1: *mut omp_nest_lock_t);
47 pub fn omp_unset_nest_lock(arg1: *mut omp_nest_lock_t);
48 pub fn omp_test_nest_lock(arg1: *mut omp_nest_lock_t) -> c_int;
49 pub fn omp_get_wtime() -> f64;
50 pub fn omp_get_wtick() -> f64;
51 pub fn omp_set_schedule(arg1: omp_sched_t, arg2: c_int);
52 pub fn omp_get_schedule(arg1: *mut omp_sched_t, arg2: *mut c_int);
53 pub fn omp_get_thread_limit() -> c_int;
54 pub fn omp_set_max_active_levels(arg1: c_int);
55 pub fn omp_get_max_active_levels() -> c_int;
56 pub fn omp_get_level() -> c_int;
57 pub fn omp_get_ancestor_thread_num(arg1: c_int) -> c_int;
58 pub fn omp_get_team_size(arg1: c_int) -> c_int;
59 pub fn omp_get_active_level() -> c_int;
60 pub fn omp_in_final() -> c_int;
61 pub fn omp_get_cancellation() -> c_int;
62 pub fn omp_get_proc_bind() -> omp_proc_bind_t;
63 pub fn omp_get_num_places() -> c_int;
64 pub fn omp_get_place_num_procs(arg1: c_int) -> c_int;
65 pub fn omp_get_place_proc_ids(arg1: c_int, arg2: *mut c_int);
66 pub fn omp_get_place_num() -> c_int;
67 pub fn omp_get_partition_num_places() -> c_int;
68 pub fn omp_get_partition_place_nums(arg1: *mut c_int);
69 pub fn omp_set_default_device(arg1: c_int);
70 pub fn omp_get_default_device() -> c_int;
71 pub fn omp_get_num_devices() -> c_int;
72 pub fn omp_get_num_teams() -> c_int;
73 pub fn omp_get_team_num() -> c_int;
74 pub fn omp_is_initial_device() -> c_int;
75 pub fn omp_get_initial_device() -> c_int;
76 pub fn omp_get_max_task_priority() -> c_int;
77 pub fn omp_target_alloc(
78 arg1: c_ulong,
79 arg2: c_int,
80 ) -> *mut c_void;
81 pub fn omp_target_free(arg1: *mut c_void, arg2: c_int);
82 pub fn omp_target_is_present(
83 arg1: *mut c_void,
84 arg2: c_int,
85 ) -> c_int;
86 pub fn omp_target_memcpy(
87 arg1: *mut c_void,
88 arg2: *mut c_void,
89 arg3: c_ulong,
90 arg4: c_ulong,
91 arg5: c_ulong,
92 arg6: c_int,
93 arg7: c_int,
94 ) -> c_int;
95 pub fn omp_target_memcpy_rect(
96 arg1: *mut c_void,
97 arg2: *mut c_void,
98 arg3: c_ulong,
99 arg4: c_int,
100 arg5: *const c_ulong,
101 arg6: *const c_ulong,
102 arg7: *const c_ulong,
103 arg8: *const c_ulong,
104 arg9: *const c_ulong,
105 arg10: c_int,
106 arg11: c_int,
107 ) -> c_int;
108 pub fn omp_target_associate_ptr(
109 arg1: *mut c_void,
110 arg2: *mut c_void,
111 arg3: c_ulong,
112 arg4: c_ulong,
113 arg5: c_int,
114 ) -> c_int;
115 pub fn omp_target_disassociate_ptr(
116 arg1: *mut c_void,
117 arg2: c_int,
118 ) -> c_int;
119}