|
|
@ -1065,23 +1065,24 @@ void static RandomXMiner() |
|
|
|
cancelSolver = true; |
|
|
|
} |
|
|
|
); |
|
|
|
randomx_flags flags = randomx_get_flags(); |
|
|
|
// flags |= RANDOMX_FLAG_LARGE_PAGES;
|
|
|
|
flags |= RANDOMX_FLAG_FULL_MEM; |
|
|
|
//flags |= RANDOMX_FLAG_JIT;
|
|
|
|
randomx_cache *randomxCache = randomx_alloc_cache(flags); |
|
|
|
if (randomxCache == NULL) { |
|
|
|
LogPrintf("RandomX cache is null, something is wrong, cannot mine!\n"); |
|
|
|
return; |
|
|
|
} |
|
|
|
rxdebug("%s: created randomx flags + cache\n"); |
|
|
|
randomx_flags flags = randomx_get_flags(); |
|
|
|
// flags |= RANDOMX_FLAG_LARGE_PAGES;
|
|
|
|
flags |= RANDOMX_FLAG_FULL_MEM; |
|
|
|
//flags |= RANDOMX_FLAG_JIT;
|
|
|
|
randomx_cache *randomxCache = randomx_alloc_cache(flags); |
|
|
|
if (randomxCache == NULL) { |
|
|
|
LogPrintf("RandomX cache is null, something is wrong, cannot mine!\n"); |
|
|
|
return; |
|
|
|
} |
|
|
|
rxdebug("%s: created randomx flags + cache\n"); |
|
|
|
randomx_dataset *randomxDataset = randomx_alloc_dataset(flags); |
|
|
|
rxdebug("%s: created dataset\n"); |
|
|
|
|
|
|
|
if( randomxDataset == nullptr) { |
|
|
|
LogPrintf("%s: allocating randomx dataset failed!\n", __func__); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
randomx_dataset *randomxDataset = randomx_alloc_dataset(flags); |
|
|
|
rxdebug("%s: created dataset\n"); |
|
|
|
if( randomxDataset == nullptr) { |
|
|
|
LogPrintf("%s: allocating randomx dataset failed!\n", __func__); |
|
|
|
return; |
|
|
|
} |
|
|
|
miningTimer.start(); |
|
|
|
|
|
|
|
try { |
|
|
|