Peano
Loading...
Searching...
No Matches
multicore.h
Go to the documentation of this file.
1
// This file is part of the Peano project. For conditions of distribution and
2
// use, please see the copyright notice at www.peano-framework.org
3
#pragma once
4
5
6
#if defined(SharedOMP)
7
8
9
namespace
tarch
{
10
namespace
multicore {
11
namespace
omp {
34
constexpr
int
majorOpenMPVersion() {
35
#if _OPENMP==199810
36
return
1;
37
#elif _OPENMP==200203 or _OPENMP==200505
38
return
2;
// 2.0 and 2.5
39
#elif _OPENMP==200805 or _OPENMP==201107
40
return
3;
// 3.0 or 3.1
41
#elif _OPENMP==201307 or _OPENMP==201511
42
return
4;
// 4.0 or 4.5
43
#elif _OPENMP==201811 or _OPENMP==202011 or _OPENMP==202111
44
return
5;
// 5.0 or 5.1 or 5.2
45
#elif _OPENMP==202411
46
return
6;
47
#else
48
return
0;
49
#endif
50
}
51
}
52
}
53
}
54
55
56
#endif
tarch
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition
accelerator.h:19
src
tarch
multicore
omp
multicore.h
Generated on Tue Nov 3 2026 16:05:42 for Peano by
1.9.8