diff options
author | Sergey Dmitriev <serguei.n.dmitriev@intel.com> | 2018-09-04 20:23:09 +0000 |
---|---|---|
committer | Sergey Dmitriev <serguei.n.dmitriev@intel.com> | 2018-09-04 20:23:09 +0000 |
commit | 8998830d60a12d479d117936f743782497379042 (patch) | |
tree | 7839aa61d74e03ef3a23b1a84aa0c0fda165b95e /openmp | |
parent | f63aa9d617908293975b0922170f2f82144c9e91 (diff) |
[libomptarget] Remove `Devices` from `RTLInfoTy`
This patch removes unused field `Devices` from `RTLInfoTy`.
Differential Revision: https://reviews.llvm.org/D51653
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/libomptarget/src/rtl.cpp | 3 | ||||
-rw-r--r-- | openmp/libomptarget/src/rtl.h | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/openmp/libomptarget/src/rtl.cpp b/openmp/libomptarget/src/rtl.cpp index 4eef9b29c4a..fd46477f2db 100644 --- a/openmp/libomptarget/src/rtl.cpp +++ b/openmp/libomptarget/src/rtl.cpp @@ -223,9 +223,6 @@ void RTLsTy::RegisterLib(__tgt_bin_desc *desc) { Devices[start + device_id].DeviceID = start + device_id; // RTL local device ID Devices[start + device_id].RTLDeviceID = device_id; - - // Save pointer to device in RTL in case we want to unregister the RTL - R.Devices.push_back(&Devices[start + device_id]); } // Initialize the index of this RTL and save it in the used RTLs. diff --git a/openmp/libomptarget/src/rtl.h b/openmp/libomptarget/src/rtl.h index dc3cd6d1225..2533e2c43a6 100644 --- a/openmp/libomptarget/src/rtl.h +++ b/openmp/libomptarget/src/rtl.h @@ -43,7 +43,6 @@ struct RTLInfoTy { // i.e. the OpenMP index of the first device // to be registered with this RTL. int32_t NumberOfDevices; // Number of devices this RTL deals with. - std::vector<DeviceTy *> Devices; // one per device (NumberOfDevices in total). void *LibraryHandler; @@ -74,7 +73,7 @@ struct RTLInfoTy { // The existence of the mutex above makes RTLInfoTy non-copyable. // We need to provide a copy constructor explicitly. RTLInfoTy() - : Idx(-1), NumberOfDevices(-1), Devices(), LibraryHandler(0), + : Idx(-1), NumberOfDevices(-1), LibraryHandler(0), #ifdef OMPTARGET_DEBUG RTLName(), #endif @@ -86,7 +85,6 @@ struct RTLInfoTy { RTLInfoTy(const RTLInfoTy &r) : Mtx() { Idx = r.Idx; NumberOfDevices = r.NumberOfDevices; - Devices = r.Devices; LibraryHandler = r.LibraryHandler; #ifdef OMPTARGET_DEBUG RTLName = r.RTLName; |