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.
1 parent b942931 commit 1703f01Copy full SHA for 1703f01
clang/lib/Headers/gpuintrin.h
@@ -41,6 +41,7 @@ _Pragma("push_macro(\"bool\")");
41
#endif
42
43
_Pragma("omp begin declare target device_type(nohost)");
44
+_Pragma("omp begin declare variant match(device = {kind(gpu)})");
45
46
// Returns the number of blocks in the requested dimension.
47
_DEFAULT_FN_ATTRS static __inline__ uint32_t __gpu_num_blocks(int __dim) {
@@ -131,6 +132,7 @@ __gpu_lane_scan_u32(uint64_t __lane_mask, uint32_t x) {
131
132
return x;
133
}
134
135
+_Pragma("omp end declare variant");
136
_Pragma("omp end declare target");
137
138
#if !defined(__cplusplus)
0 commit comments