File tree Expand file tree Collapse file tree 5 files changed +7
-13
lines changed Expand file tree Collapse file tree 5 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -205,13 +205,16 @@ void SYCLMemObjT::detachMemoryObject(
205
205
// For L0 context could be created with two ownership strategies - keep and
206
206
// transfer. If user keeps ownership - we could not enable deferred buffer
207
207
// release due to resource release conflict.
208
+ // MRecord->MCurContext == nullptr means that last submission to buffer is on
209
+ // host (host task), this execution doesn't depend on device context and fully
210
+ // controlled by RT. In this case deferred buffer destruction is allowed.
208
211
bool InteropObjectsUsed =
209
212
!MOwnNativeHandle ||
210
213
(MInteropContext && !MInteropContext->isOwnedByRuntime ());
211
214
212
- if (MRecord && MRecord-> MCurContext &&
213
- MRecord->MCurContext -> isOwnedByRuntime () && !InteropObjectsUsed &&
214
- (!MHostPtrProvided || MIsInternal)) {
215
+ if (MRecord &&
216
+ (! MRecord->MCurContext || MRecord-> MCurContext -> isOwnedByRuntime ()) &&
217
+ !InteropObjectsUsed && (!MHostPtrProvided || MIsInternal)) {
215
218
bool okToDefer = GlobalHandler::instance ().isOkToDefer ();
216
219
if (okToDefer)
217
220
Scheduler::getInstance ().deferMemObjRelease (Self);
Original file line number Diff line number Diff line change 10
10
// TODO enable opaque pointers support on CPU.
11
11
// UNSUPPORTED: cpu || accelerator
12
12
13
- // https://github.com/intel/llvm/issues/14397
14
- // UNSUPPORTED: windows && gpu-intel-gen12
15
-
16
13
// RUN: %{build} -o %t.out
17
14
// RUN: %{run} %t.out
18
15
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t2.out %}
Original file line number Diff line number Diff line change 1
- // REQUIRES: accelerator, TEMPORARY_DISABLED
1
+ // REQUIRES: accelerator
2
2
3
3
// RUN: %{build} -o %t.out
4
4
// RUN: %{run} %t.out | FileCheck %s
Original file line number Diff line number Diff line change 9
9
//
10
10
// ===----------------------------------------------------------------------===//
11
11
12
- // https://github.com/intel/llvm/issues/14397
13
- // UNSUPPORTED: windows && gpu-intel-gen12
14
-
15
12
#include < sycl/detail/core.hpp>
16
13
17
14
#include < sycl/properties/all_properties.hpp>
Original file line number Diff line number Diff line change 1
1
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-finite-math-only%} %else %{-fno-finite-math-only%}
2
2
3
- // https://github.com/intel/llvm/issues/14397
4
- // UNSUPPORTED: windows && gpu-intel-gen12
5
-
6
3
// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out
7
4
// RUN: %{run} %t.out
8
5
You can’t perform that action at this time.
0 commit comments