summaryrefslogtreecommitdiffstats
path: root/minethd.h
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-06-05 20:09:56 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-06-05 20:18:20 +0200
commitf50a52b4af1dfee2131b6d7fa0e05d348ba699bf (patch)
tree964b87be8eca9a5089ab5027f6477b3d138202a0 /minethd.h
parent63c6e98dfea0513c45e4a09200edaa3cb590f280 (diff)
downloadxmr-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/minethd.h b/minethd.h
index 6ba269e..3543b85 100644
--- a/minethd.h
+++ b/minethd.h
@@ -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
OpenPOWER on IntegriCloud