File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,13 +205,16 @@ void SYCLMemObjT::detachMemoryObject(
205205 // For L0 context could be created with two ownership strategies - keep and
206206 // transfer. If user keeps ownership - we could not enable deferred buffer
207207 // 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.
208211 bool InteropObjectsUsed =
209212 !MOwnNativeHandle ||
210213 (MInteropContext && !MInteropContext->isOwnedByRuntime ());
211214
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)) {
215218 bool okToDefer = GlobalHandler::instance ().isOkToDefer ();
216219 if (okToDefer)
217220 Scheduler::getInstance ().deferMemObjRelease (Self);
Original file line number Diff line number Diff line change 1010// TODO enable opaque pointers support on CPU.
1111// UNSUPPORTED: cpu || accelerator
1212
13- // https://github.com/intel/llvm/issues/14397
14- // UNSUPPORTED: windows && gpu-intel-gen12
15-
1613// RUN: %{build} -o %t.out
1714// RUN: %{run} %t.out
1815// 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
22
33// RUN: %{build} -o %t.out
44// RUN: %{run} %t.out | FileCheck %s
Original file line number Diff line number Diff line change 99//
1010// ===----------------------------------------------------------------------===//
1111
12- // https://github.com/intel/llvm/issues/14397
13- // UNSUPPORTED: windows && gpu-intel-gen12
14-
1512#include < sycl/detail/core.hpp>
1613
1714#include < sycl/properties/all_properties.hpp>
Original file line number Diff line number Diff line change 11// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-finite-math-only%} %else %{-fno-finite-math-only%}
22
3- // https://github.com/intel/llvm/issues/14397
4- // UNSUPPORTED: windows && gpu-intel-gen12
5-
63// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out
74// RUN: %{run} %t.out
85
You can’t perform that action at this time.
0 commit comments