mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-25 13:42:54 -05:00
Implemented VM mode for OpenCL RandomX.
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user