Skip to content

Commit ae711ab

Browse files
authored
[SYCL] Release specialization constant buffer (#5167)
This patch releases spec const buffer implementation. Tests is placed to llvm-test-suite - intel/llvm-test-suite#643
1 parent 2d312cf commit ae711ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/source/detail/device_image_impl.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ class device_image_impl {
221221
const detail::plugin &Plugin = getSyclObjImpl(MContext)->getPlugin();
222222
Plugin.call<PiApiKind::piProgramRelease>(MProgram);
223223
}
224+
if (MSpecConstsBuffer) {
225+
std::lock_guard<std::mutex> Lock{MSpecConstAccessMtx};
226+
const detail::plugin &Plugin = getSyclObjImpl(MContext)->getPlugin();
227+
memReleaseHelper(Plugin, MSpecConstsBuffer);
228+
}
224229
}
225230

226231
private:

0 commit comments

Comments
 (0)