Added AMD-SMI Linux Baremetal

Change-Id: I39ec76f4e4a8ca32eba10f4541585b2284e71539
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: 013400bee7]
Tento commit je obsažen v:
Maisam Arif
2023-01-09 11:19:35 -06:00
rodič a9b7294d85
revize 64b1e4e65b
11 změnil soubory, kde provedl 2023 přidání a 0 odebrání
+2
Zobrazit soubor
@@ -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) {