Skip to content
Merged
4 changes: 4 additions & 0 deletions sycl/source/detail/device_image_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ class device_image_impl {
const detail::plugin &Plugin = getSyclObjImpl(MContext)->getPlugin();
Plugin.call<PiApiKind::piProgramRelease>(MProgram);
}
if (MSpecConstsBuffer) {
const detail::plugin &Plugin = getSyclObjImpl(MContext)->getPlugin();
Plugin.call<PiApiKind::piMemRelease>(MSpecConstsBuffer);
}
}

private:
Expand Down
1 change: 0 additions & 1 deletion sycl/source/detail/program_manager/program_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,6 @@ static bool compatibleWithDevice(RTDeviceBinaryImage *BinImage,

kernel_id ProgramManager::getSYCLKernelID(const std::string &KernelName) {
std::lock_guard<std::mutex> KernelIDsGuard(m_KernelIDsMutex);

auto KernelID = m_KernelIDs.find(KernelName);
if (KernelID == m_KernelIDs.end())
throw runtime_error("No kernel found with the specified name",
Expand Down
1 change: 0 additions & 1 deletion sycl/source/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,6 @@ void handler::verifyUsedKernelBundle(const std::string &KernelName) {
getOrInsertHandlerKernelBundle(/*Insert=*/false);
if (!UsedKernelBundleImplPtr)
return;

kernel_id KernelID = detail::get_kernel_id_impl(KernelName);
device Dev = detail::getDeviceFromHandler(*this);
if (!UsedKernelBundleImplPtr->has_kernel(KernelID, Dev))
Expand Down
1 change: 0 additions & 1 deletion sycl/unittests/SYCL2020/SpecializationConstant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ TEST(SpecializationConstant, DefaultValuesAreSet) {

sycl::unittest::PiMock Mock{Plt};
setupDefaultMockAPIs(Mock);

const sycl::device Dev = Plt.get_devices()[0];

sycl::queue Queue{Dev};
Expand Down