diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-24 21:14:35 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-30 23:46:08 +0200 |
commit | 9967fbb0b0031f735d3ab8a275417e59cd28cac9 (patch) | |
tree | 1f8f615114a7547116f545c71d53419d5ae0c04d /backend/BackendConnector.cpp | |
parent | 4085d47d03c1762dfc95f893ed0ee86ad9eaee41 (diff) | |
download | xmr-stak-9967fbb0b0031f735d3ab8a275417e59cd28cac9.zip xmr-stak-9967fbb0b0031f735d3ab8a275417e59cd28cac9.tar.gz |
fix windows support
- fix broken windows support
Diffstat (limited to 'backend/BackendConnector.cpp')
-rw-r--r-- | backend/BackendConnector.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/BackendConnector.cpp b/backend/BackendConnector.cpp index f7a63fe..bb03e69 100644 --- a/backend/BackendConnector.cpp +++ b/backend/BackendConnector.cpp @@ -62,22 +62,22 @@ std::vector<IBackend*>* BackendConnector::thread_starter(miner_work& pWork) std::vector<IBackend*>* pvThreads = new std::vector<IBackend*>; - auto cpuThreads = cpu::minethd::thread_starter(pvThreads->size(), pWork); + auto cpuThreads = cpu::minethd::thread_starter(static_cast<uint32_t>(pvThreads->size()), pWork); pvThreads->insert(std::end(*pvThreads), std::begin(cpuThreads), std::end(cpuThreads)); if(cpuThreads.size() == 0) printer::inst()->print_msg(L0, "WARNING: backend CPU disabled."); #ifndef CONF_NO_CUDA - Plugin nvidiaPlugin("NVIDIA", "./libxmrstak_cuda_backend"); - std::vector<IBackend*>* nvidiaThreads = nvidiaPlugin.startBackend(pvThreads->size(), pWork); + Plugin nvidiaPlugin("NVIDIA", "libxmrstak_cuda_backend"); + std::vector<IBackend*>* nvidiaThreads = nvidiaPlugin.startBackend(static_cast<uint32_t>(pvThreads->size()), pWork); pvThreads->insert(std::end(*pvThreads), std::begin(*nvidiaThreads), std::end(*nvidiaThreads)); if(nvidiaThreads->size() == 0) printer::inst()->print_msg(L0, "WARNING: backend NVIDIA disabled."); #endif #ifndef CONF_NO_OPENCL - Plugin amdPlugin("AMD", "./libxmrstak_opencl_backend"); - std::vector<IBackend*>* amdThreads = amdPlugin.startBackend(pvThreads->size(), pWork); + Plugin amdPlugin("AMD", "libxmrstak_opencl_backend"); + std::vector<IBackend*>* amdThreads = amdPlugin.startBackend(static_cast<uint32_t>(pvThreads->size()), pWork); pvThreads->insert(std::end(*pvThreads), std::begin(*amdThreads), std::end(*amdThreads)); if(amdThreads->size() == 0) printer::inst()->print_msg(L0, "WARNING: backend AMD disabled."); |