diff --git a/openmp/libomptarget/include/omptarget.h b/openmp/libomptarget/include/omptarget.h index 4b8756719264..7135257c4d6f 100644 --- a/openmp/libomptarget/include/omptarget.h +++ b/openmp/libomptarget/include/omptarget.h @@ -99,10 +99,6 @@ struct __tgt_target_table { extern "C" { #endif -// Implemented in libomp, they are called from within __tgt_* functions. -int omp_get_default_device(void) __attribute__((weak)); -int32_t __kmpc_omp_taskwait(void *loc_ref, int32_t gtid) __attribute__((weak)); - int omp_get_num_devices(void); int omp_get_initial_device(void); void *omp_target_alloc(size_t size, int device_num); diff --git a/openmp/libomptarget/src/private.h b/openmp/libomptarget/src/private.h index 8150f7421575..8aa78d050d4e 100644 --- a/openmp/libomptarget/src/private.h +++ b/openmp/libomptarget/src/private.h @@ -33,6 +33,10 @@ extern int target(int64_t device_id, void *host_ptr, int32_t arg_num, extern int CheckDeviceAndCtors(int64_t device_id); +// Implemented in libomp, they are called from within __tgt_* functions. +int omp_get_default_device(void) __attribute__((weak)); +int32_t __kmpc_omp_taskwait(void *loc_ref, int32_t gtid) __attribute__((weak)); + #ifdef OMPTARGET_DEBUG extern int DebugLevel;