Skip to content

Commit 02ce822

Browse files
committed
[NFC][OpenMP][OMPX] Move declare variant up
1 parent dfa7ff9 commit 02ce822

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

openmp/runtime/src/include/ompx.h.var

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ enum {
5050
ompx_dim_z = 2,
5151
};
5252

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+
5357
/// ompx_{thread,block}_{id,dim}
5458
///{
55-
#pragma omp begin declare variant match(device = {kind(cpu)})
5659
#define _TGT_KERNEL_LANGUAGE_HOST_IMPL_GRID_C(NAME, VALUE) \
5760
static inline int ompx_##NAME(int Dim) { return VALUE; }
5861

0 commit comments

Comments
 (0)