feat: add log
This commit is contained in:
parent
3f4093b913
commit
1e56190df7
@ -329,11 +329,14 @@ find_row_mask(std::vector<set_t> &sets,
|
||||
std::vector<std::thread> workers;
|
||||
auto thread_num = cpu == 0 ? std::thread::hardware_concurrency() : cpu;
|
||||
if (thread_num > 2) { thread_num -= 2; }
|
||||
fprintf(stderr, "thread_num: %ld", thread_num);
|
||||
|
||||
uint64_t step = 0;
|
||||
for (uint64_t i = row_mask; i < last_mask; ++step) { i = next_bit_permutation(i); }
|
||||
fprintf(stderr, "total_step: %ld", step);
|
||||
step /= thread_num;
|
||||
fprintf(stderr, "worker_step: %ld", step);
|
||||
if (!step) { ++step; }
|
||||
fprintf(stderr, "thread_num: %ld", thread_num);
|
||||
|
||||
for (int i = 0; i < thread_num; ++i) {
|
||||
workers.emplace_back([&] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user