Implemented VM mode for OpenCL RandomX.
This commit is contained in:
parent
4c90f9960e
commit
95daab4bc0
42 changed files with 450 additions and 165 deletions
|
@ -40,6 +40,7 @@ namespace xmrig
|
|||
{
|
||||
|
||||
|
||||
class Buffer;
|
||||
class RxCache;
|
||||
|
||||
|
||||
|
@ -54,9 +55,11 @@ public:
|
|||
inline bool isHugePages() const { return m_flags & 1; }
|
||||
inline randomx_dataset *get() const { return m_dataset; }
|
||||
inline RxCache *cache() const { return m_cache; }
|
||||
inline size_t size() const { return maxSize(); }
|
||||
|
||||
bool init(const uint8_t *seed, uint32_t numThreads);
|
||||
bool init(const Buffer &seed, uint32_t numThreads);
|
||||
std::pair<size_t, size_t> hugePages() const;
|
||||
void *raw() const;
|
||||
|
||||
static inline constexpr size_t maxSize() { return RANDOMX_DATASET_MAX_SIZE; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue