diff --git a/sycl/source/detail/kernel_bundle_impl.hpp b/sycl/source/detail/kernel_bundle_impl.hpp index 82a14b1ad7a01..7c1afc1634237 100644 --- a/sycl/source/detail/kernel_bundle_impl.hpp +++ b/sycl/source/detail/kernel_bundle_impl.hpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include "split_string.hpp" @@ -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 DeviceGlobalIDSet; + std::unordered_set DeviceGlobalIDSet; std::vector DeviceGlobalIDVec; std::vector DeviceGlobalNames; for (const auto &RawImg : PM.getRawDeviceImages(KernelIDs)) {