summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2018-03-25 21:17:23 +0100
committerGitHub <noreply@github.com>2018-03-25 21:17:23 +0100
commita36b7e63854a56e841347cf225775d526da7a21f (patch)
tree4bc713775fab8f9b5b9f302a1ef1a20d30937790 /xmrstak
parent5fd213d0a8ff7fbc518658008ed8d57e7f107359 (diff)
parentd82630be5881a494e9b11343e4383700d97638e0 (diff)
downloadxmr-stak-a36b7e63854a56e841347cf225775d526da7a21f.zip
xmr-stak-a36b7e63854a56e841347cf225775d526da7a21f.tar.gz
Merge pull request #1203 from psychocrypt/fix-amdBenchmarkMode
fixAMD benchmark mode
Diffstat (limited to 'xmrstak')
-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 9a1becf..2e84ec5 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