DefyX fix
This commit is contained in:
parent
01e2945ab7
commit
3f98d07e76
2 changed files with 8 additions and 5 deletions
|
@ -127,6 +127,10 @@ size_t inline generate<Algorithm::RANDOM_X>(Threads<CpuThreads> &threads, uint32
|
||||||
count += threads.move("rx/wow", std::move(wow));
|
count += threads.move("rx/wow", std::move(wow));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!threads.isExist(Algorithm::DEFYX)) {
|
||||||
|
count += generate("defyx", threads, Algorithm::DEFYX, limit);
|
||||||
|
}
|
||||||
|
|
||||||
count += generate("rx", threads, Algorithm::RX_0, limit);
|
count += generate("rx", threads, Algorithm::RX_0, limit);
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
|
|
|
@ -198,11 +198,10 @@ void RandomX_ConfigurationBase::Apply()
|
||||||
|
|
||||||
#if defined(_M_X64) || defined(__x86_64__)
|
#if defined(_M_X64) || defined(__x86_64__)
|
||||||
*(uint32_t*)(codeShhPrefetchTweaked + 3) = ArgonMemory * 16 - 1;
|
*(uint32_t*)(codeShhPrefetchTweaked + 3) = ArgonMemory * 16 - 1;
|
||||||
// Not needed right now because all variants use default dataset base size
|
const uint32_t DatasetBaseMask = DatasetBaseSize - RANDOMX_DATASET_ITEM_SIZE;
|
||||||
//const uint32_t DatasetBaseMask = DatasetBaseSize - RANDOMX_DATASET_ITEM_SIZE;
|
*(uint32_t*)(codeReadDatasetTweaked + 7) = DatasetBaseMask;
|
||||||
//*(uint32_t*)(codeReadDatasetTweaked + 9) = DatasetBaseMask;
|
*(uint32_t*)(codeReadDatasetTweaked + 23) = DatasetBaseMask;
|
||||||
//*(uint32_t*)(codeReadDatasetTweaked + 24) = DatasetBaseMask;
|
*(uint32_t*)(codeReadDatasetLightSshInitTweaked + 59) = DatasetBaseMask;
|
||||||
//*(uint32_t*)(codeReadDatasetLightSshInitTweaked + 59) = DatasetBaseMask;
|
|
||||||
|
|
||||||
*(uint32_t*)(codePrefetchScratchpadTweaked + 4) = ScratchpadL3Mask64_Calculated;
|
*(uint32_t*)(codePrefetchScratchpadTweaked + 4) = ScratchpadL3Mask64_Calculated;
|
||||||
*(uint32_t*)(codePrefetchScratchpadTweaked + 18) = ScratchpadL3Mask64_Calculated;
|
*(uint32_t*)(codePrefetchScratchpadTweaked + 18) = ScratchpadL3Mask64_Calculated;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue