feat: auto detect cpu_num

This commit is contained in:
tqcq 2024-10-24 06:26:16 +00:00
parent ff60cdabac
commit 4b572d8cfa

View File

@ -57,7 +57,7 @@ main(int argc, char **argv)
size_t rounds = ROUNDS_std; size_t rounds = ROUNDS_std;
size_t m_size = MEM_SIZE_std; size_t m_size = MEM_SIZE_std;
size_t threshold = THRESHOLD_std; size_t threshold = THRESHOLD_std;
size_t cpu = 1; size_t cpu = 0;
char *o_file = (char *) O_FILE_std; char *o_file = (char *) O_FILE_std;
flags |= F_POPULATE; flags |= F_POPULATE;