/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/src/hw_sched.c

  • Committer: Suren A. Chilingaryan
  • Date: 2010-08-17 01:41:15 UTC
  • Revision ID: csa@dside.dyndns.org-20100817014115-xbh0h6086nz5sj2o
Synchronize with Chris version, set precision to 1, initial implementation of labview wrapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
}
76
76
 
77
77
int hw_sched_init() {
 
78
#ifdef HAVE_OPENMP
 
79
    int cpus;
 
80
#endif /* HAVE_OPENMP */
 
81
 
78
82
    if (!hw_sched_initialized) {
79
83
        g_thread_init(NULL);
80
84
 
81
85
#ifdef HAVE_OPENMP
82
 
        int cpus = hw_sched_get_cpu_count() / 2;
 
86
        cpus = hw_sched_get_cpu_count() / 2;
83
87
        omp_set_num_threads(cpus?cpus:1);
84
88
#endif /* HAVE_OPENMP */
85
89