From 36d78b48b7f32c21e82a62d2a48f993354dd3f00 Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Mon, 20 Nov 2017 22:06:34 +0100 Subject: fix auto suggestion for low end devices Increase bfactor for all devices with lesser than 6 multi processors. --- xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmrstak/backend') diff --git a/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu b/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu index 5501d8d..333ae73 100644 --- a/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu +++ b/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu @@ -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) { -- cgit v1.1