27 int threads = atoi(opt->
answer);
29 int num_logic_procs = omp_get_num_procs();
31 threads += num_logic_procs;
32 threads = (threads < 1) ? 1 : threads;
34 omp_set_num_threads(threads);
39 G_warning(
_(
"GRASS GIS is not compiled with OpenMP support, parallel "
40 "computation is disabled. Only one thread will be used."));
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
void void G_verbose_message(const char *,...) __attribute__((format(printf
int G_set_omp_num_threads(struct Option *opt)
Set the number of threads for OpenMP The intended usage is at the beginning of a C tool when paramete...
Structure that stores option information.