File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
plugins-nextgen/common/include Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ struct __tgt_async_info {
77
77
llvm::SmallVector<void *, 2 > AssociatedAllocations;
78
78
79
79
// / Mutex to guard access to AssociatedAllocations and the Queue.
80
- // / This is only used for liboffload and should be ignored in libomptarget
81
- // / code.
82
80
std::mutex Mutex;
83
81
84
82
// / The kernel launch environment used to issue a kernel. Stored here to
Original file line number Diff line number Diff line change @@ -486,7 +486,8 @@ Error olSyncQueue_impl(ol_queue_handle_t Queue) {
486
486
// on it, but we have nothing to synchronize in that situation anyway.
487
487
if (Queue->AsyncInfo ->Queue ) {
488
488
// We don't need to release the queue and we would like the ability for
489
- // other offload threads to submit work concurrently, so pass "false" here.
489
+ // other offload threads to submit work concurrently, so pass "false" here
490
+ // so we don't release the underlying queue object.
490
491
if (auto Err = Queue->Device ->Device ->synchronize (Queue->AsyncInfo , false ))
491
492
return Err;
492
493
}
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ struct AsyncInfoWrapperTy {
119
119
// / Register \p Ptr as an associated allocation that is freed after
120
120
// / finalization.
121
121
void freeAllocationAfterSynchronization (void *Ptr) {
122
- std::lock_guard<std::mutex> AllocationGuard{ AsyncInfoPtr->Mutex } ;
122
+ std::lock_guard<std::mutex> AllocationGuard ( AsyncInfoPtr->Mutex ) ;
123
123
AsyncInfoPtr->AssociatedAllocations .push_back (Ptr);
124
124
}
125
125
You can’t perform that action at this time.
0 commit comments