Use the same mutex as rocm-smi
Share the same mutex as rocm-smi implementation. Handle the crash when a user is not in render group. Change-Id: I486b26569f9b523b41bbdaf95d51f4a730978cfd
Este cometimento está contido em:
1 ascendente
d74be3120e
cometimento
5a6b5d2a0a
3 ficheiros modificados
+11
-9
Não existem ficheiros que correspondam à sua pesquisa
@@ -63,7 +63,6 @@ class AMDSmiGPUDevice: public AMDSmiProcessor {
|
||||
if (check_if_drm_is_supported()) this->get_drm_data();
|
||||
}
|
||||
~AMDSmiGPUDevice() {
|
||||
if (check_if_drm_is_supported()) shared_mutex_close(mutex_);
|
||||
}
|
||||
|
||||
amdsmi_status_t get_drm_data();
|
||||
@@ -91,7 +90,6 @@ class AMDSmiGPUDevice: public AMDSmiProcessor {
|
||||
amdsmi_bdf_t bdf_;
|
||||
uint32_t vendor_id_;
|
||||
AMDSmiDrm& drm_;
|
||||
shared_mutex_t mutex_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador