Added initial NVML stub.
This commit is contained in:
parent
3bdf7111ce
commit
175a7b06b7
10 changed files with 335 additions and 17 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue