aboutsummaryrefslogtreecommitdiff
path: root/libomptarget/src/rtl.h
diff options
context:
space:
mode:
Diffstat (limited to 'libomptarget/src/rtl.h')
-rw-r--r--libomptarget/src/rtl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libomptarget/src/rtl.h b/libomptarget/src/rtl.h
index 381f23e..8148e81 100644
--- a/libomptarget/src/rtl.h
+++ b/libomptarget/src/rtl.h
@@ -36,6 +36,7 @@ struct RTLInfoTy {
int32_t);
typedef int32_t(run_team_region_ty)(int32_t, void *, void **, ptrdiff_t *,
int32_t, int32_t, int32_t, uint64_t);
+ typedef int64_t(init_requires_ty)(int64_t);
int32_t Idx; // RTL index, index is the number of devices
// of other RTLs that were registered before,
@@ -60,6 +61,7 @@ struct RTLInfoTy {
data_delete_ty *data_delete;
run_region_ty *run_region;
run_team_region_ty *run_team_region;
+ init_requires_ty *init_requires;
// Are there images associated with this RTL.
bool isUsed;
@@ -78,8 +80,8 @@ struct RTLInfoTy {
#endif
is_valid_binary(0), number_of_devices(0), init_device(0),
load_binary(0), data_alloc(0), data_submit(0), data_retrieve(0),
- data_delete(0), run_region(0), run_team_region(0), isUsed(false),
- Mtx() {}
+ data_delete(0), run_region(0), run_team_region(0),
+ init_requires(0), isUsed(false), Mtx() {}
RTLInfoTy(const RTLInfoTy &r) : Mtx() {
Idx = r.Idx;
@@ -98,6 +100,7 @@ struct RTLInfoTy {
data_delete = r.data_delete;
run_region = r.run_region;
run_team_region = r.run_team_region;
+ init_requires = r.init_requires;
isUsed = r.isUsed;
}
};