Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/include/rtl.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | struct RTLInfoTy { | ||||
typedef int32_t(sync_event_ty)(int32_t, void *); | typedef int32_t(sync_event_ty)(int32_t, void *); | ||||
typedef int32_t(destroy_event_ty)(int32_t, void *); | typedef int32_t(destroy_event_ty)(int32_t, void *); | ||||
typedef int32_t(release_async_info_ty)(int32_t, __tgt_async_info *); | typedef int32_t(release_async_info_ty)(int32_t, __tgt_async_info *); | ||||
typedef int32_t(init_async_info_ty)(int32_t, __tgt_async_info **); | typedef int32_t(init_async_info_ty)(int32_t, __tgt_async_info **); | ||||
typedef int64_t(init_device_into_ty)(int64_t, __tgt_device_info *, | typedef int64_t(init_device_into_ty)(int64_t, __tgt_device_info *, | ||||
const char **); | const char **); | ||||
typedef int32_t(data_lock_ty)(int32_t, void *, int64_t, void **); | typedef int32_t(data_lock_ty)(int32_t, void *, int64_t, void **); | ||||
typedef int32_t(data_unlock_ty)(int32_t, void *); | typedef int32_t(data_unlock_ty)(int32_t, void *); | ||||
typedef int32_t(data_notify_mapped_ty)(int32_t, void *, int64_t); | |||||
typedef int32_t(data_notify_unmapped_ty)(int32_t, void *); | |||||
int32_t Idx = -1; // RTL index, index is the number of devices | int32_t Idx = -1; // RTL index, index is the number of devices | ||||
// of other RTLs that were registered before, | // of other RTLs that were registered before, | ||||
// i.e. the OpenMP index of the first device | // i.e. the OpenMP index of the first device | ||||
// to be registered with this RTL. | // to be registered with this RTL. | ||||
int32_t NumberOfDevices = -1; // Number of devices this RTL deals with. | int32_t NumberOfDevices = -1; // Number of devices this RTL deals with. | ||||
std::unique_ptr<llvm::sys::DynamicLibrary> LibraryHandler; | std::unique_ptr<llvm::sys::DynamicLibrary> LibraryHandler; | ||||
Show All 34 Lines | #endif | ||||
wait_event_ty *wait_event = nullptr; | wait_event_ty *wait_event = nullptr; | ||||
sync_event_ty *sync_event = nullptr; | sync_event_ty *sync_event = nullptr; | ||||
destroy_event_ty *destroy_event = nullptr; | destroy_event_ty *destroy_event = nullptr; | ||||
init_async_info_ty *init_async_info = nullptr; | init_async_info_ty *init_async_info = nullptr; | ||||
init_device_into_ty *init_device_info = nullptr; | init_device_into_ty *init_device_info = nullptr; | ||||
release_async_info_ty *release_async_info = nullptr; | release_async_info_ty *release_async_info = nullptr; | ||||
data_lock_ty *data_lock = nullptr; | data_lock_ty *data_lock = nullptr; | ||||
data_unlock_ty *data_unlock = nullptr; | data_unlock_ty *data_unlock = nullptr; | ||||
data_notify_mapped_ty *data_notify_mapped = nullptr; | |||||
data_notify_unmapped_ty *data_notify_unmapped = nullptr; | |||||
// Are there images associated with this RTL. | // Are there images associated with this RTL. | ||||
bool IsUsed = false; | bool IsUsed = false; | ||||
llvm::DenseSet<const __tgt_device_image *> UsedImages; | llvm::DenseSet<const __tgt_device_image *> UsedImages; | ||||
// Mutex for thread-safety when calling RTL interface functions. | // Mutex for thread-safety when calling RTL interface functions. | ||||
// It is easier to enforce thread-safety at the libomptarget level, | // It is easier to enforce thread-safety at the libomptarget level, | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |