diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-10-27 23:13:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-27 23:13:44 +0100 |
commit | a7fb89bec2b88cc694bf88aed729451bb9bdd8a0 (patch) | |
tree | 1fe67113efda926b59969b5525ac7cdaad1563b2 /xmrstak/backend/amd/autoAdjust.hpp | |
parent | c192b97b67bf648540bf058f21b7873bfe886a82 (diff) | |
parent | 3e091d9251bf0d67c27efa5183d24cff7cbe9b50 (diff) | |
download | xmr-stak-a7fb89bec2b88cc694bf88aed729451bb9bdd8a0.zip xmr-stak-a7fb89bec2b88cc694bf88aed729451bb9bdd8a0.tar.gz |
Merge pull request #72 from psychocrypt/topic-increaseSavetyMemory
increase safety memory for autosuggestion
Diffstat (limited to 'xmrstak/backend/amd/autoAdjust.hpp')
-rw-r--r-- | xmrstak/backend/amd/autoAdjust.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmrstak/backend/amd/autoAdjust.hpp b/xmrstak/backend/amd/autoAdjust.hpp index 87e6299..8f9aa50 100644 --- a/xmrstak/backend/amd/autoAdjust.hpp +++ b/xmrstak/backend/amd/autoAdjust.hpp @@ -97,8 +97,8 @@ private: int i = 0; for(auto& ctx : devVec) { - // keep 64MiB memory free (value is randomly chosen) - size_t availableMem = ctx.freeMem - (64u * 1024 * 1024); + // keep 128MiB memory free (value is randomly chosen) + size_t availableMem = ctx.freeMem - (128u * byteToMiB); // 224byte extra memory is used per thread for meta data size_t perThread = hashMemSize + 224u; size_t max_intensity = availableMem / perThread; |