[llvm] [offload][l0] Implement context groups and add actual L0 driver version to info (PR #217562)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 02:41:32 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions hpp,cpp,h -- libsycl/src/detail/device_impl.hpp libsycl/src/detail/platform_impl.cpp libsycl/src/detail/platform_impl.hpp libsycl/src/detail/queue_impl.cpp libsycl/unittests/device_selector/get_device_preference.cpp libsycl/unittests/mock/helpers.cpp offload/liboffload/src/OffloadImpl.cpp offload/plugins-nextgen/common/include/PluginInterface.h offload/plugins-nextgen/level_zero/dynamic_l0/L0DynWrapper.cpp offload/plugins-nextgen/level_zero/dynamic_l0/level_zero/ze_api.h offload/plugins-nextgen/level_zero/include/L0Context.h offload/plugins-nextgen/level_zero/include/L0Device.h offload/plugins-nextgen/level_zero/include/L0Plugin.h offload/plugins-nextgen/level_zero/src/L0Context.cpp offload/plugins-nextgen/level_zero/src/L0Device.cpp offload/plugins-nextgen/level_zero/src/L0Plugin.cpp offload/unittests/OffloadAPI/common/Properties.hpp offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp offload/unittests/OffloadAPI/device/olGetDeviceInfoSize.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libsycl/src/detail/device_impl.hpp b/libsycl/src/detail/device_impl.hpp
index c057a07d2..9ec7acebf 100644
--- a/libsycl/src/detail/device_impl.hpp
+++ b/libsycl/src/detail/device_impl.hpp
@@ -45,10 +45,9 @@ public:
explicit DeviceImpl(ol_device_handle_t Device, PlatformImpl &Platform,
PrivateTag)
: MOffloadDevice(Device), MPlatform(Platform) {
- ol_result_t Res =
- callNoCheck(olGetDeviceInfo, MOffloadDevice,
- OL_DEVICE_INFO_CONTEXT_GROUP_INDEX,
- sizeof(MContextGroupIndex), &MContextGroupIndex);
+ ol_result_t Res = callNoCheck(
+ olGetDeviceInfo, MOffloadDevice, OL_DEVICE_INFO_CONTEXT_GROUP_INDEX,
+ sizeof(MContextGroupIndex), &MContextGroupIndex);
if (isFailed(Res))
MContextGroupIndex = 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/217562
More information about the llvm-commits
mailing list