summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/nvidia/nvcc_code
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-11-20 22:06:34 +0100
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-11-20 22:06:34 +0100
commit36d78b48b7f32c21e82a62d2a48f993354dd3f00 (patch)
treec0588d80f3c54fabf9c8c8cc30fbebc28de89ae6 /xmrstak/backend/nvidia/nvcc_code
parent463ec3c10647c7962f7dcfdff94c4a80672d8bca (diff)
downloadxmr-stak-36d78b48b7f32c21e82a62d2a48f993354dd3f00.zip
xmr-stak-36d78b48b7f32c21e82a62d2a48f993354dd3f00.tar.gz
fix auto suggestion for low end devices
Increase bfactor for all devices with lesser than 6 multi processors.
Diffstat (limited to 'xmrstak/backend/nvidia/nvcc_code')
-rw-r--r--xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu4
1 files changed, 4 insertions, 0 deletions
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)
{
OpenPOWER on IntegriCloud