1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 01:50:10 +00:00

Replace a missing while() with round_up_multiple_64()

This commit is contained in:
Jens Steube 2018-02-13 13:28:26 +01:00
parent 1af8e29a4b
commit d965475b28

View File

@ -1633,7 +1633,7 @@ int run_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, con
}
}
while (num_elements % kernel_threads) num_elements++;
num_elements = round_up_multiple_64 (num_elements, kernel_threads);
const size_t global_work_size[3] = { num_elements, 1, 1 };
const size_t local_work_size[3] = { kernel_threads, 1, 1 };