summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorJudemir Ribeiro <jribeiro@venetian.bioinfo.puc.cl>2018-04-07 02:05:02 -0300
committerJudemir Ribeiro <jribeiro@venetian.bioinfo.puc.cl>2018-04-07 02:05:02 -0300
commitfba213188ffa2c3e7dba538e5a043cc116c89901 (patch)
treeffa6ec6b2f514260e9c2d3e773073779dc875ee8 /xmrstak
parent5e19ef1d2a86227667ab65f9096ff313e8061484 (diff)
downloadxmr-stak-fba213188ffa2c3e7dba538e5a043cc116c89901.zip
xmr-stak-fba213188ffa2c3e7dba538e5a043cc116c89901.tar.gz
Fixed compile error without hwloc.
Diffstat (limited to 'xmrstak')
-rw-r--r--xmrstak/backend/cpu/autoAdjust.hpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/xmrstak/backend/cpu/autoAdjust.hpp b/xmrstak/backend/cpu/autoAdjust.hpp
index 6134aa7..9a04b52 100644
--- a/xmrstak/backend/cpu/autoAdjust.hpp
+++ b/xmrstak/backend/cpu/autoAdjust.hpp
@@ -9,12 +9,7 @@
#include "xmrstak/backend/cryptonight.hpp"
#include <string>
-#ifdef _WIN32
-#include <windows.h>
-#else
#include <unistd.h>
-#endif // _WIN32
-
namespace xmrstak
{
@@ -38,17 +33,6 @@ public:
size_t hashMemSizeKB;
size_t halfHashMemSizeKB;
- if(::jconf::inst()->IsCurrencyMonero())
- {
- hashMemSizeKB = MONERO_MEMORY / 1024u;
- halfHashMemSizeKB = hashMemSizeKB / 2u;
- }
- else
- {
- hashMemSizeKB = AEON_MEMORY / 1024u;
- halfHashMemSizeKB = hashMemSizeKB / 2u;
- }
-
configEditor configTpl{};
// load the template of the backend config into a char variable
@@ -66,7 +50,7 @@ public:
printer::inst()->print_msg(L0, "Autoconf failed: L3 size sanity check failed - %u KB.", L3KB_size);
conf += std::string(" { \"low_power_mode\" : false, \"be_mode\" : true, \"affine_to_cpu\" : false },\n");
- printer::inst()->print_msg(L0, "Autoconf FAILED. Create config for a single thread. Please try to add new ones until the hashrate slows down.");
+ printer::inst()->print_msg(L0, "No hwloc library. Created config for a single thread. Please try to add new ones until the hashrate slows down.");
}
else
{
OpenPOWER on IntegriCloud