/* -- This function could be used to calculated the best num of keys per crypt for the given format -- */ void autotune_find_best_gws(int sequential_id, unsigned int rounds, int step, unsigned long long int max_run_time) { char *tmp_value; if ((tmp_value = getenv("STEP"))) step = atoi(tmp_value); step = GET_MULTIPLE_OR_ZERO(step, local_work_size); //Call the default function. opencl_find_best_gws(step, max_run_time, sequential_id, rounds); }
/* -- This function could be used to calculated the best num of keys per crypt for the given format -- */ void common_find_best_gws(int sequential_id, unsigned int rounds, int step, unsigned long long int max_run_time) { int show_speed = 0, show_details = 0; char *tmp_value; if (getenv("DETAILS")) { show_details = 1; } if ((tmp_value = getenv("STEP"))) { step = atoi(tmp_value); show_speed = 1; } step = GET_MULTIPLE(step, local_work_size); //Call the default function. opencl_find_best_gws( step, show_speed, show_details, max_run_time, sequential_id, rounds); }