summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/amd
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-26 20:58:27 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-27 20:13:19 +0200
commit12802f12e30f57c2a9eefca2c1a5955275c95127 (patch)
treea10bced239ecd012ceeed593571a3fb8bccee9cb /xmrstak/backend/amd
parent41451d91e8e50f2b6c4b07630987dbc5a58aecb9 (diff)
downloadxmr-stak-12802f12e30f57c2a9eefca2c1a5955275c95127.zip
xmr-stak-12802f12e30f57c2a9eefca2c1a5955275c95127.tar.gz
rename `xmr` to `monero`
- rename all `xmr` to `monero` - be insensitive while check for set currency - add function to compate two strings insensitive
Diffstat (limited to 'xmrstak/backend/amd')
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.cpp12
-rw-r--r--xmrstak/backend/amd/autoAdjust.hpp8
-rw-r--r--xmrstak/backend/amd/minethd.cpp2
3 files changed, 11 insertions, 11 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp
index 845d32c..22ce5d0 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "../../cryptonight.hpp"
-#include "../../../jconf.hpp"
+#include "xmrstak/backend/cryptonight.hpp"
+#include "xmrstak/jconf.hpp"
#include <stdio.h>
#include <string.h>
@@ -251,11 +251,11 @@ size_t InitOpenCLGpu(cl_context opencl_ctx, GpuContext* ctx, const char* source_
size_t hashMemSize;
int threadMemMask;
int hasIterations;
- if(::jconf::inst()->IsCurrencyXMR())
+ if(::jconf::inst()->IsCurrencyMonero())
{
- hashMemSize = XMR_MEMORY;
- threadMemMask = XMR_MASK;
- hasIterations = XMR_ITER;
+ hashMemSize = MONERO_MEMORY;
+ threadMemMask = MONERO_MASK;
+ hasIterations = MONERO_ITER;
}
else
{
diff --git a/xmrstak/backend/amd/autoAdjust.hpp b/xmrstak/backend/amd/autoAdjust.hpp
index 01f279a..87e6299 100644
--- a/xmrstak/backend/amd/autoAdjust.hpp
+++ b/xmrstak/backend/amd/autoAdjust.hpp
@@ -8,8 +8,8 @@
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/configEditor.hpp"
#include "xmrstak/params.hpp"
-#include "../cryptonight.hpp"
-#include "../../jconf.hpp"
+#include "xmrstak/backend/cryptonight.hpp"
+#include "xmrstak/jconf.hpp"
#include <vector>
#include <cstdio>
@@ -84,9 +84,9 @@ private:
constexpr size_t byteToMiB = 1024u * 1024u;
size_t hashMemSize;
- if(::jconf::inst()->IsCurrencyXMR())
+ if(::jconf::inst()->IsCurrencyMonero())
{
- hashMemSize = XMR_MEMORY;
+ hashMemSize = MONERO_MEMORY;
}
else
{
diff --git a/xmrstak/backend/amd/minethd.cpp b/xmrstak/backend/amd/minethd.cpp
index 295ad31..f12e12c 100644
--- a/xmrstak/backend/amd/minethd.cpp
+++ b/xmrstak/backend/amd/minethd.cpp
@@ -183,7 +183,7 @@ void minethd::work_main()
uint64_t iCount = 0;
cryptonight_ctx* cpu_ctx;
cpu_ctx = cpu::minethd::minethd_alloc_ctx();
- cn_hash_fun hash_fun = cpu::minethd::func_selector(::jconf::inst()->HaveHardwareAes(), true /*bNoPrefetch*/, ::jconf::inst()->IsCurrencyXMR());
+ cn_hash_fun hash_fun = cpu::minethd::func_selector(::jconf::inst()->HaveHardwareAes(), true /*bNoPrefetch*/, ::jconf::inst()->IsCurrencyMonero());
globalStates::inst().iConsumeCnt++;
while (bQuit == 0)
OpenPOWER on IntegriCloud