Added AMD GPUs health information for Linux (via sysfs).

This commit is contained in:
XMRig 2020-02-14 23:37:44 +07:00
parent 5ad52192fe
commit d23e5e15ba
No known key found for this signature in database
GPG key ID: 446A53638BE94409
4 changed files with 146 additions and 5 deletions

View file

@ -25,7 +25,6 @@
#include "backend/opencl/wrappers/AdlLib.h"
#include "3rdparty/adl/adl_sdk.h"
#include "3rdparty/adl/adl_structures.h"
#include "base/io/log/Log.h"
#include "backend/opencl/wrappers/OclDevice.h"
@ -188,7 +187,7 @@ void xmrig::AdlLib::close()
AdlHealth xmrig::AdlLib::health(const OclDevice &device)
{
if (!isReady()) {
if (!isReady() || device.vendorId() != OCL_VENDOR_AMD) {
return {};
}