Added AMD-SMI Linux Baremetal

Change-Id: I39ec76f4e4a8ca32eba10f4541585b2284e71539
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
This commit is contained in:
Maisam Arif
2023-01-09 11:19:35 -06:00
parent 86de0f441f
commit 013400bee7
11 changed files with 2023 additions and 0 deletions
+2
View File
@@ -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) {