We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
declare variant
1 parent dfa7ff9 commit 02ce822Copy full SHA for 02ce822
openmp/runtime/src/include/ompx.h.var
@@ -50,9 +50,12 @@ enum {
50
ompx_dim_z = 2,
51
};
52
53
+// TODO: The following implementation is for host fallback. We need to disable
54
+// generation of host fallback in kernel language mode.
55
+#pragma omp begin declare variant match(device = {kind(cpu)})
56
+
57
/// ompx_{thread,block}_{id,dim}
58
///{
-#pragma omp begin declare variant match(device = {kind(cpu)})
59
#define _TGT_KERNEL_LANGUAGE_HOST_IMPL_GRID_C(NAME, VALUE) \
60
static inline int ompx_##NAME(int Dim) { return VALUE; }
61
0 commit comments