Skip to content

Commit 21fc956

Browse files
committed
Print device ID with zero-padded to 4 digits
1 parent d865b5f commit 21fc956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def pytest_collection_modifyitems(config, items):
140140
print(
141141
f"DPNP Test scope includes all integer dtypes: {bool(dtype_config.all_int_types)}"
142142
)
143-
print(f"DPNP current device ID: {get_dev_id(dev):#x}")
143+
print(f"DPNP current device ID: 0x{get_dev_id(dev):04X}")
144144
print(f"DPNP current device is CPU: {is_cpu}")
145145
print(f"DPNP current device is GPU: {is_gpu}")
146146
print(f"DPNP current device supports fp64: {support_fp64}")

0 commit comments

Comments
 (0)