Dero HE (astrobwt/v2) CUDA config generator

This commit is contained in:
SChernykh 2022-03-10 00:24:49 +01:00
parent f25e65b5ac
commit a2728af4f7
3 changed files with 23 additions and 4 deletions

View file

@ -139,7 +139,14 @@ size_t inline generate<Algorithm::RANDOM_X>(Threads<CudaThreads> &threads, const
template<>
size_t inline generate<Algorithm::ASTROBWT>(Threads<CudaThreads> &threads, const std::vector<CudaDevice> &devices)
{
return generate(Algorithm::kASTROBWT, threads, Algorithm::ASTROBWT_DERO, devices);
size_t count = 0;
if (!threads.isExist(Algorithm::ASTROBWT_DERO_2)) {
count += threads.move(Algorithm::kASTROBWT_DERO_2, CudaThreads(devices, Algorithm::ASTROBWT_DERO_2));
}
count += generate(Algorithm::kASTROBWT, threads, Algorithm::ASTROBWT_DERO, devices);
return count;
}
#endif