Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions sycl/cmake/modules/UnifiedRuntimeTag.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# commit dbd168cbed2d2590b47904728cd5762f1c2f4c6b (HEAD, origin/main, origin/HEAD)
# Merge: 694c1b9a 27ad3f7d
# Author: Piotr Balcer <piotr.balcer@intel.com>
# Date: Mon Oct 28 16:29:45 2024 +0100
# Merge pull request #2242 from nrspruit/sysman_env_disable
# [L0] Enable Sysman Thru Env by default and have zesInit be optional
set(UNIFIED_RUNTIME_TAG dbd168cbed2d2590b47904728cd5762f1c2f4c6b)
# commit 884b646ca3b4c17c4efc56937d34ddcdc81de9a9
# Merge: f31bec36 9989d97b
# Author: aarongreig <aaron.greig@codeplay.com>
# Date: Tue Oct 29 10:38:34 2024 +0000
# Merge pull request #2227 from RossBrunton/ross/platformget
# Handle INVALID_VALUE in OCL urPlatformGet
set(UNIFIED_RUNTIME_TAG 884b646ca3b4c17c4efc56937d34ddcdc81de9a9)
6 changes: 4 additions & 2 deletions sycl/source/detail/adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ class Adapter {
uint32_t platformCount = 0;
call<UrApiKind::urPlatformGet>(&MAdapter, 1, 0, nullptr, &platformCount);
UrPlatforms.resize(platformCount);
call<UrApiKind::urPlatformGet>(&MAdapter, 1, platformCount,
UrPlatforms.data(), nullptr);
if (platformCount) {
call<UrApiKind::urPlatformGet>(&MAdapter, 1, platformCount,
UrPlatforms.data(), nullptr);
}
// We need one entry in this per platform
LastDeviceIds.resize(platformCount);
});
Expand Down
Loading