randomx_get_flags() automatically sets all flags except RANDOMX_FLAG_FULL_MEM, RANDOMX_FLAG_LARGE_PAGES and RANDOMX_FLAG_SECURE
This commit is contained in:
@@ -1095,16 +1095,13 @@ void static RandomXMiner()
|
|||||||
miningTimer.start();
|
miningTimer.start();
|
||||||
|
|
||||||
randomx_flags flags = randomx_get_flags();
|
randomx_flags flags = randomx_get_flags();
|
||||||
// TODO: attempt to use large pages and fall back to no large pages
|
|
||||||
// flags |= RANDOMX_FLAG_LARGE_PAGES;
|
|
||||||
flags |= RANDOMX_FLAG_FULL_MEM;
|
flags |= RANDOMX_FLAG_FULL_MEM;
|
||||||
//flags |= RANDOMX_FLAG_JIT;
|
randomx_cache *randomxCache = randomx_alloc_cache(flags | RANDOMX_FLAG_LARGE_PAGES | RANDOMX_FLAG_SECURE );
|
||||||
randomx_cache *randomxCache = randomx_alloc_cache(flags | RANDOMX_FLAG_LARGE_PAGES | RANDOMX_FLAG_JIT | RANDOMX_FLAG_HARD_AES);
|
|
||||||
if (randomxCache == NULL) {
|
if (randomxCache == NULL) {
|
||||||
LogPrintf("RandomX cache is null, trying without large pages and without jit ...\n");
|
LogPrintf("RandomX cache is null, trying without large pages...\n");
|
||||||
randomxCache = randomx_alloc_cache(flags | RANDOMX_FLAG_HARD_AES);
|
randomxCache = randomx_alloc_cache(flags | RANDOMX_FLAG_SECURE);
|
||||||
if (randomxCache == NULL) {
|
if (randomxCache == NULL) {
|
||||||
LogPrintf("RandomX cache is null, trying without hardware AES...\n");
|
LogPrintf("RandomX cache is null, trying without secure...\n");
|
||||||
}
|
}
|
||||||
randomxCache = randomx_alloc_cache(flags);
|
randomxCache = randomx_alloc_cache(flags);
|
||||||
if (randomxCache == NULL) {
|
if (randomxCache == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user