Load libdrm at run time

Remove the compile time dependency on libdrm. Load it at the run
time instead.

Add the headers missed from smi-lib

Change-Id: Ie1ecf293b51425b6a61c502d11a42809dc099f70
This commit is contained in:
Bill(Shuzhou) Liu committed 2022-06-28 14:48:59 -04:00
1 parent 91ad08aa65
commit 5ba371f285
12 files changed
+407 -106

No files matched your search

+2 -2
View File
@@ -77,9 +77,9 @@ int main() {
// For each socket, get identifier and devices
for (uint32_t i=0; i < socket_count; i++) {
// Get Socket identifier
// Get Socket info
char socket_name[128];
ret = amdsmi_get_socket_identifier(sockets[i], socket_name, 128);
ret = amdsmi_get_socket_info(sockets[i], socket_name, 128);
CHK_AMDSMI_RET(ret)
std::cout << "Socket " << socket_name << std::endl;