diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-11-24 00:55:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 00:55:38 +0000 |
commit | 6261ec73ff89ed42b2eb3e74b8be091963efc538 (patch) | |
tree | 53544abfce71d045f983f6cd25089297ded76b2b /xmrstak/backend | |
parent | fb6baa5d46cfa3d5e2b835544ea83e736b6903e4 (diff) | |
parent | 36d78b48b7f32c21e82a62d2a48f993354dd3f00 (diff) | |
download | xmr-stak-6261ec73ff89ed42b2eb3e74b8be091963efc538.zip xmr-stak-6261ec73ff89ed42b2eb3e74b8be091963efc538.tar.gz |
Merge pull request #180 from psychocrypt/topic-increaseBfactor
fix auto suggestion for low end devices
Diffstat (limited to 'xmrstak/backend')
-rw-r--r-- | xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu | 4 |
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) { |