Skip to content

Commit eb441b9

Browse files
committed
[NFC] Fix ctad warnings
llvm/sycl/source/detail/context_impl.cpp:496:48: error: 'std::set' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
1 parent 75f476d commit eb441b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/source/detail/context_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ std::optional<ur_program_handle_t> context_impl::getProgramForDevImgs(
493493
auto &Cache = LockedCache.get().Cache;
494494
ur_device_handle_t &DevHandle = getSyclObjImpl(Device)->getHandleRef();
495495
for (std::uintptr_t ImageIDs : ImgIdentifiers) {
496-
auto OuterKey = std::make_pair(ImageIDs, std::set{DevHandle});
496+
auto OuterKey = std::make_pair(ImageIDs, std::set<ur_device_handle_t>{DevHandle});
497497
size_t NProgs = KeyMap.count(OuterKey);
498498
if (NProgs == 0)
499499
continue;

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ ur_program_handle_t ProgramManager::getBuiltURProgram(
911911
uint32_t ImgId = Img.getImageID();
912912
const ur_device_handle_t UrDevice = Dev->getHandleRef();
913913
auto CacheKey = std::make_pair(std::make_pair(std::move(SpecConsts), ImgId),
914-
std::set{UrDevice});
914+
std::set<ur_device_handle_t>{UrDevice});
915915

916916
auto GetCachedBuildF = [&Cache, &CacheKey]() {
917917
return Cache.getOrInsertProgram(CacheKey);

0 commit comments

Comments
 (0)