diff --git a/sycl/plugins/unified_runtime/CMakeLists.txt b/sycl/plugins/unified_runtime/CMakeLists.txt index 813cd12a2084a..0808d33d6c202 100644 --- a/sycl/plugins/unified_runtime/CMakeLists.txt +++ b/sycl/plugins/unified_runtime/CMakeLists.txt @@ -100,13 +100,13 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT) endfunction() set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git") - # commit 4f105262c30ac231b8db1e250f36e88ef9f0a36d - # Merge: 0f118d75 92fce2ee + # commit 4f13cd14bdd86f0cce4a19e00bf63eb7230e6369 + # Merge: 4f105262 2c3096a3 # Author: Kenneth Benzie (Benie) - # Date: Mon Jun 10 13:23:16 2024 +0100 - # Merge pull request #1409 from omarahmed1111/Add-CTS-tests-for-image-format - # [CTS] Add CTS tests for urMemImageCreate entry-point - set(UNIFIED_RUNTIME_TAG 4f105262c30ac231b8db1e250f36e88ef9f0a36d) + # Date: Mon Jun 10 16:02:26 2024 +0100 + # Merge pull request #1282 from al42and/fix-sub-group-size-info + # Fix size confusion for several device property queries + set(UNIFIED_RUNTIME_TAG 4f13cd14bdd86f0cce4a19e00bf63eb7230e6369) fetch_adapter_source(level_zero ${UNIFIED_RUNTIME_REPO} diff --git a/sycl/source/detail/device_info.hpp b/sycl/source/detail/device_info.hpp index 6d23432271c54..16f19b80e8fbd 100644 --- a/sycl/source/detail/device_info.hpp +++ b/sycl/source/detail/device_info.hpp @@ -501,10 +501,16 @@ struct get_device_info_impl, Dev->getHandleRef(), PiInfoCode::value, 0, nullptr, &resultSize); - std::vector result(resultSize / sizeof(size_t)); + std::vector result32(resultSize / sizeof(uint32_t)); Dev->getPlugin()->call( Dev->getHandleRef(), PiInfoCode::value, - resultSize, result.data(), nullptr); + resultSize, result32.data(), nullptr); + + std::vector result; + result.reserve(result32.size()); + for (uint32_t value : result32) { + result.push_back(value); + } return result; } };