File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
source/tools/show_devices_l0 Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (C) 2022-2024 Intel Corporation
2+ * Copyright (C) 2022-2025 Intel Corporation
33 *
44 * SPDX-License-Identifier: MIT
55 *
@@ -95,6 +95,17 @@ int printDeviceProperties(ze_device_handle_t device, uint32_t numberOfTabs) {
9595 std::cout << static_cast <uint32_t >(deviceProperties.uuid .id [i]) << " " ;
9696 }
9797 std::cout << " \n " ;
98+
99+ ze_device_memory_properties_t memoryProperties = {};
100+ uint32_t count = 0u ;
101+ res = zeDeviceGetMemoryProperties (device, &count, nullptr );
102+ if (res == ZE_RESULT_SUCCESS && count == 1 ) {
103+ zeDeviceGetMemoryProperties (device, &count, &memoryProperties);
104+ std::cout << tabDelimiter << " Memory properties: \n " ;
105+ std::cout << tabDelimiter << " \t total size: " << std::dec << memoryProperties.totalSize << " \n " ;
106+ std::cout << tabDelimiter << " \t max clock rate: " << memoryProperties.maxClockRate << " \n " ;
107+ }
108+
98109 ze_device_memory_access_properties_t memoryAccessCapabilities = {};
99110
100111 res = zeDeviceGetMemoryAccessProperties (device, &memoryAccessCapabilities);
You can’t perform that action at this time.
0 commit comments