@@ -70,10 +70,23 @@ typedef struct kmp_task {
7070 int32_t part_id;
7171} kmp_task_t ;
7272
73- int32_t __kmpc_global_thread_num (void *) __attribute__((weak));
74- bool __kmpc_omp_has_task_team (int32_t gtid) __attribute__((weak));
75- void **__kmpc_omp_get_target_async_handle_ptr (int32_t gtid)
76- __attribute__((weak));
73+ // Implemented in libomp, they are called from within __tgt_* functions.
74+ int32_t __kmpc_global_thread_num (void *);
75+ bool __kmpc_omp_has_task_team (int32_t gtid);
76+ void **__kmpc_omp_get_target_async_handle_ptr (int32_t gtid);
77+ int __kmpc_get_target_offload (void );
78+ kmp_task_t *
79+ __kmpc_omp_target_task_alloc (ident_t *loc_ref, int32_t gtid, int32_t flags,
80+ size_t sizeof_kmp_task_t , size_t sizeof_shareds,
81+ kmp_routine_entry_t task_entry, int64_t device_id);
82+ int32_t __kmpc_omp_task_with_deps (ident_t *loc_ref, int32_t gtid,
83+ kmp_task_t *new_task, int32_t ndeps,
84+ kmp_depend_info_t *dep_list,
85+ int32_t ndeps_noalias,
86+ kmp_depend_info_t *noalias_dep_list);
87+ void __kmpc_omp_wait_deps (ident_t *loc_ref, int32_t gtid, int32_t ndeps,
88+ kmp_depend_info_t *dep_list, int32_t ndeps_noalias,
89+ kmp_depend_info_t *noalias_dep_list);
7790
7891/* *
7992 * The argument set that is passed from asynchronous memory copy to block
0 commit comments