mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 00:37:46 +00:00
Auto-config for mobile Ryzen APUs
This commit is contained in:
parent
039c42b1fe
commit
4e5aef0a8a
2 changed files with 8 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
||||||
#include "crypto/common/Algorithm.h"
|
#include "crypto/common/Algorithm.h"
|
||||||
#include "crypto/randomx/randomx.h"
|
#include "crypto/randomx/randomx.h"
|
||||||
#include "crypto/rx/RxAlgo.h"
|
#include "crypto/rx/RxAlgo.h"
|
||||||
|
#include "base/io/log/Log.h"
|
||||||
|
|
||||||
|
|
||||||
namespace xmrig {
|
namespace xmrig {
|
||||||
|
@ -40,6 +41,12 @@ bool ocl_generic_rx_generator(const OclDevice &device, const Algorithm &algorith
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mobile Ryzen APUs
|
||||||
|
if (device.type() == OclDevice::Raven) {
|
||||||
|
threads.add(OclThread(device.index(), (device.computeUnits() > 4) ? 256 : 128, 8, 1, true, true, 6));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
const size_t mem = device.globalMemSize();
|
const size_t mem = device.globalMemSize();
|
||||||
auto config = RxAlgo::base(algorithm);
|
auto config = RxAlgo::base(algorithm);
|
||||||
bool gcnAsm = false;
|
bool gcnAsm = false;
|
||||||
|
|
|
@ -52,7 +52,7 @@ xmrig::OclRxBaseRunner::OclRxBaseRunner(size_t index, const OclLaunchData &data)
|
||||||
m_worksize = 8;
|
m_worksize = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.device.type() == OclDevice::Vega_10 || data.device.type() == OclDevice::Vega_20) {
|
if (data.device.type() == OclDevice::Vega_10 || data.device.type() == OclDevice::Vega_20 || data.device.type() == OclDevice::Raven) {
|
||||||
m_gcn_version = 14;
|
m_gcn_version = 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue