diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-03-25 21:06:21 +0200 |
---|---|---|
committer | psychocrypt <psychocryptHPC@gmail.com> | 2018-03-25 21:06:21 +0200 |
commit | d82630be5881a494e9b11343e4383700d97638e0 (patch) | |
tree | 9ca705833a92862be63f086699da57e5bb548410 | |
parent | f730932895769d4e6cf1cf266e163a64313cbf44 (diff) | |
download | xmr-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.cpp | 5 |
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(); |