Skip to content

Commit 40ad342

Browse files
committed
format :/
1 parent 120e3d4 commit 40ad342

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

offload/plugins-nextgen/level_zero/include/L0Device.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,14 @@ class L0DeviceTy final : public GenericDeviceTy {
348348
uint32_t getMaxSharedLocalMemory() const {
349349
return ComputeProperties.maxSharedLocalMemory;
350350
}
351-
uint32_t getMaxGroupSize() const { return ComputeProperties.maxTotalGroupSize; }
351+
uint32_t getMaxGroupSize() const {
352+
return ComputeProperties.maxTotalGroupSize;
353+
}
352354
uint64_t getGlobalMemorySize() const { return MemoryProperties.totalSize; }
353355
size_t getCacheSize() const { return CacheProperties.cacheSize; }
354-
uint64_t getMaxMemAllocSize() const { return DeviceProperties.maxMemAllocSize; }
356+
uint64_t getMaxMemAllocSize() const {
357+
return DeviceProperties.maxMemAllocSize;
358+
}
355359

356360
int32_t getAllocKind() const { return AllocKind; }
357361
DeviceArchTy getDeviceArch() const { return DeviceArch; }

offload/plugins-nextgen/level_zero/src/L0Plugin.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,9 @@ Expected<int32_t> LevelZeroPluginTy::findDevices() {
9696

9797
DP("Found %" PRIu32 " devices.\n", NumDevices);
9898
DP("List of devices (DeviceID[.SubID[.CCSID]])\n");
99-
for (auto &DeviceInfo : DetectedDevices) {
99+
for (auto &DeviceInfo : DetectedDevices) {
100100
(void)DeviceInfo; // to avoid unused variable warning in non-debug builds
101-
DP("-- Device %" PRIu32 "%s%s\n",
102-
DeviceInfo.Id.RootId,
101+
DP("-- Device %" PRIu32 "%s%s\n", DeviceInfo.Id.RootId,
103102
(DeviceInfo.Id.SubId < 0
104103
? ""
105104
: ("." + std::to_string(DeviceInfo.Id.SubId)).c_str()),

0 commit comments

Comments
 (0)