mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-17 05:41:41 +02:00
Merge pull request #180 from psychocrypt/topic-increaseBfactor
fix auto suggestion for low end devices
This commit is contained in:
@@ -380,6 +380,10 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx)
|
||||
*/
|
||||
ctx->device_blocks = props.multiProcessorCount *
|
||||
( props.major < 3 ? 2 : 3 );
|
||||
|
||||
// increase bfactor for low end devices to avoid that the miner is killed by the OS
|
||||
if(props.multiProcessorCount < 6)
|
||||
ctx->device_bfactor += 2;
|
||||
}
|
||||
if(ctx->device_threads == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user