LLVM: include/llvm/Frontend/OpenMP/OMPGridValues.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef LLVM_FRONTEND_OPENMP_OMPGRIDVALUES_H
15#define LLVM_FRONTEND_OPENMP_OMPGRIDVALUES_H
16
17namespace llvm {
18
19namespace omp {
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
58
60
62
66
67
69
71
72
73
74
76
78
80
84};
85
86
88 256,
89 64,
90 (1 << 16),
91 440,
92 896,
93 1024,
94 256,
95};
96
98 256,
99 32,
100 (1 << 16),
101 440,
102 896,
103 1024,
104 256,
105};
106
108 static_assert(wavesize == 32 || wavesize == 64, "Unexpected wavesize");
110}
111
112
114 256,
115 32,
116 (1 << 16),
117 3200,
118 896,
119 1024,
120 128,
121};
122
123
125 256,
126 64,
127 (1 << 16),
128 440,
129 896,
130 1024,
131 256,
132};
133
134}
135}
136
137#endif
static constexpr GV AMDGPUGridValues64
For AMDGPU GPUs.
Definition OMPGridValues.h:87
static constexpr GV AMDGPUGridValues32
Definition OMPGridValues.h:97
constexpr const GV & getAMDGPUGridValues()
Definition OMPGridValues.h:107
static constexpr GV SPIRVGridValues
For generic SPIR-V GPUs.
Definition OMPGridValues.h:124
static constexpr GV NVPTXGridValues
For Nvidia GPUs.
Definition OMPGridValues.h:113
This is an optimization pass for GlobalISel generic memory operations.
Defines various target-specific GPU grid values that must be consistent between host RTL (plugin),...
Definition OMPGridValues.h:57
constexpr unsigned maxWarpNumber() const
Definition OMPGridValues.h:81
constexpr unsigned warpSlotSize() const
Definition OMPGridValues.h:63
unsigned GV_Slot_Size
The size reserved for data in a shared memory slot.
Definition OMPGridValues.h:59
unsigned GV_Default_Num_Teams
Definition OMPGridValues.h:70
unsigned GV_Warp_Size
The default value of maximum number of threads in a worker warp.
Definition OMPGridValues.h:61
unsigned GV_Default_WG_Size
Definition OMPGridValues.h:79
unsigned GV_SimpleBufferSize
Definition OMPGridValues.h:75
unsigned GV_Max_Teams
the maximum number of teams.
Definition OMPGridValues.h:68
unsigned GV_Max_WG_Size
Definition OMPGridValues.h:77