Skip to content

Commit b6c393a

Browse files
committed
format & add more Deviceinfo tags
1 parent f983135 commit b6c393a

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ class SpecConstantsTy {
3939
: ConstantIds(std::move(Other.ConstantIds)),
4040
ConstantValues(std::move(Other.ConstantValues)),
4141
Allocator(Other.Allocator) {}
42-
43-
~SpecConstantsTy() {
44-
}
42+
~SpecConstantsTy() {}
4543

4644
template <typename T> void addConstant(uint32_t Id, T Val) {
4745
T *ValuePtr =

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,17 +574,22 @@ Expected<InfoTreeNode> L0DeviceTy::obtainInfoImpl() {
574574
Info.add("Driver Version", "Unknown", "", DeviceInfo::DRIVER_VERSION);
575575
Info.add("Device PCI ID", getPCIId());
576576
Info.add("Device UUID", getUuid().data());
577-
Info.add("Number of total EUs", getNumEUs());
577+
Info.add("Number of total EUs", getNumEUs(), "", DeviceInfo::MAX_COMPUTE_UNITS);
578578
Info.add("Number of threads per EU", getNumThreadsPerEU());
579579
Info.add("EU SIMD width", getSIMDWidth());
580580
Info.add("Number of EUs per subslice", getNumEUsPerSubslice());
581581
Info.add("Number of subslices per slice", getNumSubslicesPerSlice());
582582
Info.add("Number of slices", getNumSlices());
583+
Info.add("Max Group size", getMaxGroupSize(), "",
584+
DeviceInfo::MAX_GROUP_WORK_SIZE);
583585
Info.add("Local memory size (bytes)", getMaxSharedLocalMemory());
584-
Info.add("Global memory size (bytes)", getGlobalMemorySize(), "", DeviceInfo::GLOBAL_MEM_SIZE);
586+
Info.add("Global memory size (bytes)", getGlobalMemorySize(), "",
587+
DeviceInfo::GLOBAL_MEM_SIZE);
585588
Info.add("Cache size (bytes)", getCacheSize());
586-
Info.add("Max Memory Allocation Size (bytes)", getMaxMemAllocSize(), "", DeviceInfo::MAX_MEM_ALLOC_SIZE);
587-
Info.add("Max clock frequency (MHz)", getClockRate(), "" , DeviceInfo::MAX_CLOCK_FREQUENCY);
589+
Info.add("Max Memory Allocation Size (bytes)", getMaxMemAllocSize(), "",
590+
DeviceInfo::MAX_MEM_ALLOC_SIZE);
591+
Info.add("Max clock frequency (MHz)", getClockRate(), "",
592+
DeviceInfo::MAX_CLOCK_FREQUENCY);
588593
return Info;
589594
}
590595

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ GenericGlobalHandlerTy *LevelZeroPluginTy::createGlobalHandler() {
176176
return new L0GlobalHandlerTy();
177177
}
178178

179-
uint16_t LevelZeroPluginTy::getMagicElfBits() const {
180-
return ELF::EM_INTELGT;
181-
}
179+
uint16_t LevelZeroPluginTy::getMagicElfBits() const { return ELF::EM_INTELGT; }
182180

183181
Triple::ArchType LevelZeroPluginTy::getTripleArch() const {
184182
return Triple::spirv64;

0 commit comments

Comments
 (0)