summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-03-25 21:06:21 +0200
committerpsychocrypt <psychocryptHPC@gmail.com>2018-03-25 21:06:21 +0200
commitd82630be5881a494e9b11343e4383700d97638e0 (patch)
tree9ca705833a92862be63f086699da57e5bb548410
parentf730932895769d4e6cf1cf266e163a64313cbf44 (diff)
downloadxmr-stak-d82630be5881a494e9b11343e4383700d97638e0.zip
xmr-stak-d82630be5881a494e9b11343e4383700d97638e0.tar.gz
fixAMD benchmark mode
The OpenCl code is only supporting jobs up to 84byte
-rw-r--r--xmrstak/cli/cli-miner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp
index e2d50f2..4f725bd 100644
--- a/xmrstak/cli/cli-miner.cpp
+++ b/xmrstak/cli/cli-miner.cpp
@@ -783,7 +783,10 @@ int do_benchmark(int block_version)
printer::inst()->print_msg(L0, "Wait 30 sec until all backends are initialized");
std::this_thread::sleep_for(std::chrono::seconds(30));
- xmrstak::miner_work benchWork = xmrstak::miner_work("", work, sizeof(work), 0, false, 0);
+ /* AMD and NVIDIA is currently only supporting work sizes up to 84byte
+ * \todo fix this issue
+ */
+ xmrstak::miner_work benchWork = xmrstak::miner_work("", work, 84, 0, false, 0);
printer::inst()->print_msg(L0, "Start a 60 second benchmark...");
xmrstak::globalStates::inst().switch_work(benchWork, dat);
uint64_t iStartStamp = get_timestamp_ms();
OpenPOWER on IntegriCloud