summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/amd/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/amd/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/amd/minethd.cpp')
-rw-r--r--xmrstak/backend/amd/minethd.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmrstak/backend/amd/minethd.cpp b/xmrstak/backend/amd/minethd.cpp
index 4353e3d..6948c19 100644
--- a/xmrstak/backend/amd/minethd.cpp
+++ b/xmrstak/backend/amd/minethd.cpp
@@ -73,7 +73,7 @@ minethd::minethd(miner_work& pWork, size_t iNo, GpuContext* ctx, const jconf::th
extern "C" {
#ifdef WIN32
-__declspec(dllexport)
+__declspec(dllexport)
#endif
std::vector<iBackend*>* xmrstak_start_backend(uint32_t threadOffset, miner_work& pWork, environment& env)
{
@@ -122,7 +122,7 @@ std::vector<iBackend*>* minethd::thread_starter(uint32_t threadOffset, miner_wor
win_exit();
}
- // \ todo get device count and exit if no opencl device
+ // \ todo get device count and exit if no opencl device
if(!init_gpus())
{
@@ -139,7 +139,7 @@ std::vector<iBackend*>* minethd::thread_starter(uint32_t threadOffset, miner_wor
jconf::inst()->GetThreadConfig(i, cfg);
const std::string backendName = xmrstak::params::inst().openCLVendor;
-
+
if(cfg.cpu_aff >= 0)
{
#if defined(__APPLE__)
@@ -193,7 +193,7 @@ 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);
@@ -242,7 +242,7 @@ void minethd::work_main()
assert(sizeof(job_result::sJobID) == sizeof(pool_job::sJobID));
uint64_t target = oWork.iTarget;
-
+
XMRSetJob(pGpuCtx, oWork.bWorkBlob, oWork.iWorkSize, target, miner_algo);
if(oWork.bNiceHash)
OpenPOWER on IntegriCloud