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
Этот коммит содержится в:
@@ -57,13 +57,13 @@ class AMDSmiGPUDevice: public AMDSmiDevice {
|
||||
AMDSmiDevice(AMD_GPU), gpu_id_(gpu_id), drm_(drm) {}
|
||||
|
||||
uint32_t get_gpu_id() const;
|
||||
int amdgpu_query_info(unsigned info_id,
|
||||
amdsmi_status_t amdgpu_query_info(unsigned info_id,
|
||||
unsigned size, void *value) const;
|
||||
int amdgpu_query_hw_ip(unsigned info_id, unsigned hw_ip_type,
|
||||
amdsmi_status_t amdgpu_query_hw_ip(unsigned info_id, unsigned hw_ip_type,
|
||||
unsigned size, void *value) const;
|
||||
int amdgpu_query_fw(unsigned info_id, unsigned fw_type,
|
||||
amdsmi_status_t amdgpu_query_fw(unsigned info_id, unsigned fw_type,
|
||||
unsigned size, void *value) const;
|
||||
int amdgpu_query_vbios(void *info) const;
|
||||
amdsmi_status_t amdgpu_query_vbios(void *info) const;
|
||||
private:
|
||||
uint32_t gpu_id_;
|
||||
AMDSmiDrm& drm_;
|
||||
|
||||
Ссылка в новой задаче
Block a user