Skip to content

Commit 7374332

Browse files
committed
format bytes
1 parent a79e37e commit 7374332

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/lib.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,22 @@ fn get_device_info(device: &PhysicalDevice, color: &str) -> Vec<String> {
163163
// ));
164164
lines.push(format!(
165165
"{}{}Max Compute Shared Memory Size{}: {} bytes",
166-
ALIGNMENT, color, RESET, device.characteristics.max_compute_shared_memory_size
166+
ALIGNMENT,
167+
color,
168+
RESET,
169+
format_bytes(device.characteristics.max_compute_shared_memory_size.into())
167170
));
168171
lines.push(format!(
169172
"{}{}Max Compute Work Group Invocations{}: {}",
170-
ALIGNMENT, color, RESET, device.characteristics.max_compute_work_group_invocations
173+
ALIGNMENT,
174+
color,
175+
RESET,
176+
format_bytes(
177+
device
178+
.characteristics
179+
.max_compute_work_group_invocations
180+
.into()
181+
)
171182
));
172183

173184
lines

0 commit comments

Comments
 (0)