File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
offload/plugins-nextgen/level_zero Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff 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; }
Original file line number Diff line number Diff 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 ()),
You can’t perform that action at this time.
0 commit comments