Skip to content
Snippets Groups Projects
Commit d82630be authored by psychocrypt's avatar psychocrypt
Browse files

fixAMD benchmark mode

The OpenCl code is only supporting jobs up to 84byte
parent f7309328
No related branches found
No related tags found
No related merge requests found
...@@ -783,7 +783,10 @@ int do_benchmark(int block_version) ...@@ -783,7 +783,10 @@ int do_benchmark(int block_version)
printer::inst()->print_msg(L0, "Wait 30 sec until all backends are initialized"); printer::inst()->print_msg(L0, "Wait 30 sec until all backends are initialized");
std::this_thread::sleep_for(std::chrono::seconds(30)); 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..."); printer::inst()->print_msg(L0, "Start a 60 second benchmark...");
xmrstak::globalStates::inst().switch_work(benchWork, dat); xmrstak::globalStates::inst().switch_work(benchWork, dat);
uint64_t iStartStamp = get_timestamp_ms(); uint64_t iStartStamp = get_timestamp_ms();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment