Stride Reference Manual  1.0
pick.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Usage: define the parameter UNIPAR_IMPL to one of these values:
4 // 1: UNIPAR_DUMMY (default) --> For the dummy implementation (without parallelisation)
5 // 2: UNIPAR_TBB --> For Intel TBB
6 // 3: UNIPAR_OPENMP --> For OpenMP
7 
8 // Example:
9 // #include "unipar/pick_choices.h"
10 // #define UNIPAR_IMPL UNIPAR_TBB
11 // #include "unipar/pick.h"
12 
13 // After this, you can use the class `Parallel`.
14 
15 #include "pick_choices.h"
16 
17 #ifndef UNIPAR_IMPL
18 #define UNIPAR_IMPL DUMMY
19 #warning Using default Dummy Unipar Implementation
20 #endif
21 
22 #if UNIPAR_IMPL == UNIPAR_DUMMY
23 
24 #include "dummy.h"
25 
26 namespace unipar {
28 }
29 
30 #elif UNIPAR_IMPL == UNIPAR_TBB
31 
32 #include "tbb.h"
33 namespace unipar {
35 }
36 
37 #elif UNIPAR_IMPL == UNIPAR_OPENMP
38 
39 #include "openmp.h"
40 namespace unipar {
42 }
43 
44 #else
45 
46 #error Unknown Unipar Implementation
47 
48 #endif
internal::ParallelWrapper< internal::_OpenmpParallel > OpenmpParallel
Definition: openmp.h:93
unipar::Parallel Parallel
Definition: unipar.h:16
internal::ParallelWrapper< internal::_DummyParallel > DummyParallel
Definition: dummy.h:66
Unified Parallelisation.
Definition: dummy.h:7
internal::ParallelWrapper< internal::_TbbParallel > TbbParallel
Definition: tbb.h:91