diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-06-05 20:09:56 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-06-05 20:18:20 +0200 |
commit | f50a52b4af1dfee2131b6d7fa0e05d348ba699bf (patch) | |
tree | 964b87be8eca9a5089ab5027f6477b3d138202a0 /minethd.h | |
parent | 63c6e98dfea0513c45e4a09200edaa3cb590f280 (diff) | |
download | xmr-stak-f50a52b4af1dfee2131b6d7fa0e05d348ba699bf.zip xmr-stak-f50a52b4af1dfee2131b6d7fa0e05d348ba699bf.tar.gz |
hwloc NUMA memory binding
- add function `bindMemoryToNUMANode()`
- add `affinity` member to `minethd`
Diffstat (limited to 'minethd.h')
-rw-r--r-- | minethd.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -97,11 +97,13 @@ public: std::atomic<uint64_t> iHashCount; std::atomic<uint64_t> iTimestamp; + int affinity; + private: typedef void (*cn_hash_fun)(const void*, size_t, void*, cryptonight_ctx*); typedef void (*cn_hash_fun_dbl)(const void*, size_t, void*, cryptonight_ctx* __restrict, cryptonight_ctx* __restrict); - minethd(miner_work& pWork, size_t iNo, bool double_work, bool no_prefetch); + minethd(miner_work& pWork, size_t iNo, bool double_work, bool no_prefetch, int affinity); // We use the top 10 bits of the nonce for thread and resume // This allows us to resume up to 128 threads 4 times before |