summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/nvidia/minethd.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-28 21:20:19 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-28 21:20:19 +0200
commit7ecf4cec6ea1f6bfc0ff01b281b459115b1d4fca (patch)
tree0667caa4ba65e163e27ee74099da4a4d26bb6de7 /xmrstak/backend/nvidia/minethd.cpp
parenta7fb89bec2b88cc694bf88aed729451bb9bdd8a0 (diff)
downloadxmr-stak-7ecf4cec6ea1f6bfc0ff01b281b459115b1d4fca.zip
xmr-stak-7ecf4cec6ea1f6bfc0ff01b281b459115b1d4fca.tar.gz
fix windows compile and broken aeon
- fix windows linker error during compile - fix wrong parameter to call aeon (nvidia-backend)
Diffstat (limited to 'xmrstak/backend/nvidia/minethd.cpp')
-rw-r--r--xmrstak/backend/nvidia/minethd.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/xmrstak/backend/nvidia/minethd.cpp b/xmrstak/backend/nvidia/minethd.cpp
index 0bc6214..0cf9a42 100644
--- a/xmrstak/backend/nvidia/minethd.cpp
+++ b/xmrstak/backend/nvidia/minethd.cpp
@@ -222,7 +222,6 @@ void minethd::work_main()
}
bool mineMonero = strcmp_i(::jconf::inst()->GetCurrency(), "monero");
- bool useAEON = strcmp_i(::jconf::inst()->GetCurrency(), "aeon");
while (bQuit == 0)
{
@@ -261,18 +260,9 @@ void minethd::work_main()
uint32_t foundCount;
cryptonight_extra_cpu_prepare(&ctx, iNonce);
-#ifndef CONF_NO_MONERO
- if(mineMonero)
- {
- cryptonight_core_cpu_hash<MONERO_ITER, MONERO_MASK, 19>(&ctx);
- }
-#endif
-#ifndef CONF_NO_AEON
- if(useAEON)
- {
- cryptonight_core_cpu_hash<MONERO_ITER, MONERO_MASK, 18>(&ctx);
- }
-#endif
+
+ cryptonight_core_cpu_hash(&ctx, mineMonero);
+
cryptonight_extra_cpu_final(&ctx, iNonce, oWork.iTarget, &foundCount, foundNonce);
for(size_t i = 0; i < foundCount; i++)
OpenPOWER on IntegriCloud