Skip to content
Snippets Groups Projects

OpenMP parallelization of cbm::algo::tof::Hitfind.

Merged Dominik Smith requested to merge d.smith/cbmroot:ParallelTofClusterizer into master
Files
3
+ 2
0
@@ -45,10 +45,12 @@ namespace cbm::algo::openmp
#ifndef HAVE_OMP
inline int GetMaxThreads() { return 1; }
inline int GetThreadNum() { return 0; }
inline int GetNumThreads() { return 1; }
inline void SetNumThreads(int) {}
#else
inline int GetMaxThreads() { return omp_get_max_threads(); }
inline int GetThreadNum() { return omp_get_thread_num(); }
inline int GetNumThreads() { return omp_get_num_threads(); }
inline void SetNumThreads(int n) { omp_set_num_threads(n); }
#endif
Loading