Skip to content

[SYCL] Release specialization constant buffer #5167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Dec 23, 2021
5 changes: 5 additions & 0 deletions sycl/source/detail/device_image_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ class device_image_impl {
const detail::plugin &Plugin = getSyclObjImpl(MContext)->getPlugin();
Plugin.call<PiApiKind::piProgramRelease>(MProgram);
}
if (MSpecConstsBuffer) {
std::lock_guard<std::mutex> Lock{MSpecConstAccessMtx};
const detail::plugin &Plugin = getSyclObjImpl(MContext)->getPlugin();
memReleaseHelper(Plugin, MSpecConstsBuffer);
}
}

private:
Expand Down