summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/nvidia/minethd.cpp
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2018-05-04 10:31:33 +0100
committerGitHub <noreply@github.com>2018-05-04 10:31:33 +0100
commitf8e161cf096cb371e204cc35f87ab568b41d819e (patch)
tree6dc4c795f2bf3fc28f874f2f92473d8c59bf7768 /xmrstak/backend/nvidia/minethd.cpp
parent478a023ff62d1ebccb9547c1a152b7d296c11fb2 (diff)
parent3cd0bd9543ff26210b571fdb71128a214f091eb9 (diff)
downloadxmr-stak-f8e161cf096cb371e204cc35f87ab568b41d819e.zip
xmr-stak-f8e161cf096cb371e204cc35f87ab568b41d819e.tar.gz
Merge pull request #1535 from fireice-uk/topic-Spudz76-spellcheck
Spell check
Diffstat (limited to 'xmrstak/backend/nvidia/minethd.cpp')
-rw-r--r--xmrstak/backend/nvidia/minethd.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmrstak/backend/nvidia/minethd.cpp b/xmrstak/backend/nvidia/minethd.cpp
index 92f5f78..5d4782e 100644
--- a/xmrstak/backend/nvidia/minethd.cpp
+++ b/xmrstak/backend/nvidia/minethd.cpp
@@ -181,7 +181,7 @@ std::vector<iBackend*>* minethd::thread_starter(uint32_t threadOffset, miner_wor
}
else
printer::inst()->print_msg(L1, "Starting NVIDIA GPU thread %d, no affinity.", i);
-
+
minethd* thd = new minethd(pWork, i + threadOffset, cfg);
pvThreads->push_back(thd);
@@ -223,7 +223,7 @@ void minethd::work_main()
if(cuda_get_deviceinfo(&ctx) != 0 || cryptonight_extra_cpu_init(&ctx) != 1)
{
- printer::inst()->print_msg(L0, "Setup failed for GPU %d. Exitting.\n", (int)iThreadNo);
+ printer::inst()->print_msg(L0, "Setup failed for GPU %d. Exiting.\n", (int)iThreadNo);
std::exit(0);
}
@@ -237,11 +237,11 @@ void minethd::work_main()
uint64_t iCount = 0;
cryptonight_ctx* cpu_ctx;
cpu_ctx = cpu::minethd::minethd_alloc_ctx();
-
+
// start with root algorithm and switch later if fork version is reached
auto miner_algo = ::jconf::inst()->GetCurrentCoinSelection().GetDescription(1).GetMiningAlgoRoot();
cn_hash_fun hash_fun = cpu::minethd::func_selector(::jconf::inst()->HaveHardwareAes(), true /*bNoPrefetch*/, miner_algo);
-
+
uint32_t iNonce;
globalStates::inst().iConsumeCnt++;
@@ -299,7 +299,7 @@ void minethd::work_main()
{
globalStates::inst().calc_start_nonce(iNonce, oWork.bNiceHash, h_per_round * 16);
}
-
+
uint32_t foundNonce[10];
uint32_t foundCount;
OpenPOWER on IntegriCloud