Init the amdsmi using rocm_smi for libdrm
Init the ams_smi using the rocm-smi, which makes the GPU discovery
consistent with or without libdrm.
Change-Id: Ic714781f8ce791451b0c057621525926edb7f5ee
[ROCm/amdsmi commit: b34b7451e8]
このコミットが含まれているのは:
1 親
17fa3924d6
コミット
2d0fb9744a
2ファイル変更
+71
-85
検索条件に一致するファイルはありません
@@ -76,7 +76,9 @@ class AMDSmiSystem {
|
||||
amdsmi_device_handle* device_handle);
|
||||
|
||||
private:
|
||||
AMDSmiSystem() : init_flag_(AMDSMI_INIT_ALL_DEVICES) {}
|
||||
AMDSmiSystem() : init_flag_(AMDSMI_INIT_AMD_GPUS) {}
|
||||
amdsmi_status_t get_gpu_bdf_by_index(uint32_t index, std::string& bdf);
|
||||
amdsmi_status_t populate_amd_gpu_devices();
|
||||
uint64_t init_flag_;
|
||||
AMDSmiDrm drm_;
|
||||
std::vector<AMDSmiSocket*> sockets_;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする