shreepads / pdfcrack-mp

OpenMP update with patterns for pdfcrack
GNU General Public License v2.0
38 stars 12 forks source link

Allow the user to specify any number of threads #21

Open shreepads opened 9 years ago

shreepads commented 9 years ago

At present, when the user provides an input thread count, if that exceeds the value returned by omp_get_max_threads() the number of threads is set to omp_get_max_threads().

While this usually makes sense, instead of doing this just print a warning and continue.

The number of threads still needs to be limited to prevent chaos so set to an upper limit of omp_get_max_threads() * 4.