Added initial NVML stub.

This commit is contained in:
XMRig 2019-10-30 15:33:06 +07:00
parent 3bdf7111ce
commit 175a7b06b7
10 changed files with 335 additions and 17 deletions

View file

@ -48,8 +48,8 @@ xmrig::Nonce::Nonce()
{
m_paused = true;
for (int i = 0; i < MAX; ++i) {
m_sequence[i] = 1;
for (auto &i : m_sequence) {
i = 1;
}
}
@ -85,15 +85,15 @@ void xmrig::Nonce::stop()
{
pause(false);
for (int i = 0; i < MAX; ++i) {
m_sequence[i] = 0;
for (auto &i : m_sequence) {
i = 0;
}
}
void xmrig::Nonce::touch()
{
for (int i = 0; i < MAX; ++i) {
m_sequence[i]++;
for (auto &i : m_sequence) {
i++;
}
}