@@ -110,16 +110,13 @@ extern "C" {
110
110
* The struct is identical to the one in the kmp.h file.
111
111
* We maintain the same data structure for compatibility.
112
112
*/
113
- typedef int kmp_int32;
114
- typedef int64_t kmp_int64;
115
-
116
113
typedef void *omp_depend_t ;
117
114
struct kmp_task ;
118
- typedef kmp_int32 (*kmp_routine_entry_t )(kmp_int32 , struct kmp_task *);
115
+ typedef int32_t (*kmp_routine_entry_t )(int32_t , struct kmp_task *);
119
116
typedef struct kmp_task {
120
117
void *shareds;
121
118
kmp_routine_entry_t routine;
122
- kmp_int32 part_id;
119
+ int32_t part_id;
123
120
} kmp_task_t ;
124
121
125
122
typedef struct kmp_tasking_flags { /* Total struct must be exactly 32 bits */
@@ -157,26 +154,26 @@ typedef struct kmp_tasking_flags { /* Total struct must be exactly 32 bits */
157
154
158
155
int32_t __kmpc_global_thread_num (void *) __attribute__((weak));
159
156
int __kmpc_get_target_offload (void ) __attribute__((weak));
160
- void **__kmpc_omp_get_target_async_handle_ptr (kmp_int32 gtid)
157
+ void **__kmpc_omp_get_target_async_handle_ptr (int32_t gtid)
161
158
__attribute__((weak));
162
- bool __kmpc_omp_has_task_team (kmp_int32 gtid) __attribute__((weak));
163
- kmp_task_t *__kmpc_omp_task_alloc (ident_t *loc_ref, kmp_int32 gtid,
164
- kmp_int32 flags, size_t sizeof_kmp_task_t ,
159
+ bool __kmpc_omp_has_task_team (int32_t gtid) __attribute__((weak));
160
+ kmp_task_t *__kmpc_omp_task_alloc (ident_t *loc_ref, int32_t gtid, int32_t flags ,
161
+ size_t sizeof_kmp_task_t ,
165
162
size_t sizeof_shareds,
166
163
kmp_routine_entry_t task_entry)
167
164
__attribute__((weak));
168
165
169
166
kmp_task_t *
170
- __kmpc_omp_target_task_alloc (ident_t *loc_ref, kmp_int32 gtid, kmp_int32 flags,
167
+ __kmpc_omp_target_task_alloc (ident_t *loc_ref, int32_t gtid, int32_t flags,
171
168
size_t sizeof_kmp_task_t , size_t sizeof_shareds,
172
- kmp_routine_entry_t task_entry,
173
- kmp_int64 device_id) __attribute__((weak));
174
-
175
- kmp_int32 __kmpc_omp_task_with_deps (ident_t *loc_ref, kmp_int32 gtid,
176
- kmp_task_t *new_task, kmp_int32 ndeps,
177
- kmp_depend_info_t *dep_list,
178
- kmp_int32 ndeps_noalias,
179
- kmp_depend_info_t *noalias_dep_list)
169
+ kmp_routine_entry_t task_entry, int64_t device_id)
170
+ __attribute__((weak));
171
+
172
+ int32_t __kmpc_omp_task_with_deps (ident_t *loc_ref, int32_t gtid,
173
+ kmp_task_t *new_task, int32_t ndeps,
174
+ kmp_depend_info_t *dep_list,
175
+ int32_t ndeps_noalias,
176
+ kmp_depend_info_t *noalias_dep_list)
180
177
__attribute__((weak));
181
178
182
179
/* *
0 commit comments