Change-Id: I39ec76f4e4a8ca32eba10f4541585b2284e71539
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Этот коммит содержится в:
Maisam Arif
2023-01-09 11:19:35 -06:00
родитель 86de0f441f
Коммит 013400bee7
11 изменённых файлов: 2023 добавлений и 0 удалений
+2
Просмотреть файл
@@ -259,6 +259,8 @@ int main() {
// Get device type. Since the amdsmi is initialized with
// AMD_SMI_INIT_AMD_GPUS, the device_type must be AMD_GPU.
device_type_t device_type = {};
std::cout << "Device Handle: " << device_handles[j] << std::endl;
ret = amdsmi_get_device_type(device_handles[j], &device_type);
CHK_AMDSMI_RET(ret)
if (device_type != AMD_GPU) {