aboutsummaryrefslogtreecommitdiff
path: root/libomptarget/src/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'libomptarget/src/device.h')
-rw-r--r--libomptarget/src/device.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libomptarget/src/device.h b/libomptarget/src/device.h
index 2e1ad71..f4cc8ad 100644
--- a/libomptarget/src/device.h
+++ b/libomptarget/src/device.h
@@ -96,7 +96,9 @@ struct DeviceTy {
std::mutex DataMapMtx, PendingGlobalsMtx, ShadowMtx;
- uint64_t loopTripCnt;
+ // NOTE: Once libomp gains full target-task support, this state should be
+ // moved into the target task in libomp.
+ std::map<int32_t, uint64_t> loopTripCnt;
int64_t RTLRequiresFlags;
@@ -104,7 +106,7 @@ struct DeviceTy {
: DeviceID(-1), RTL(RTL), RTLDeviceID(-1), IsInit(false), InitFlag(),
HasPendingGlobals(false), HostDataToTargetMap(),
PendingCtorsDtors(), ShadowPtrMap(), DataMapMtx(), PendingGlobalsMtx(),
- ShadowMtx(), loopTripCnt(0), RTLRequiresFlags(0) {}
+ ShadowMtx(), RTLRequiresFlags(0) {}
// The existence of mutexes makes DeviceTy non-copyable. We need to
// provide a copy constructor and an assignment operator explicitly.