Skip to content

Commit

Permalink
Use unordered set
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Oppermann <[email protected]>
  • Loading branch information
jopperm committed Jan 24, 2025
1 parent dd081f6 commit e5df76d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sycl/source/detail/kernel_bundle_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <cstdint>
#include <cstring>
#include <memory>
#include <unordered_set>
#include <vector>

#include "split_string.hpp"
Expand Down Expand Up @@ -523,7 +524,7 @@ class kernel_bundle_impl {

// Determine IDs of all device globals referenced by this bundle's
// kernels. These IDs are also prefixed.
std::set<std::string> DeviceGlobalIDSet;
std::unordered_set<std::string> DeviceGlobalIDSet;
std::vector<std::string> DeviceGlobalIDVec;
std::vector<std::string> DeviceGlobalNames;
for (const auto &RawImg : PM.getRawDeviceImages(KernelIDs)) {
Expand Down

0 comments on commit e5df76d

Please sign in to comment.