[PATCH] D92231: [OpenCL] Implement extended subgroups fully in headers
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 8 07:48:41 PST 2020
Anastasia added inline comments.
================
Comment at: clang/lib/Headers/opencl-c-base.h:17-23
+#define cl_khr_subgroup_extended_types
+#define cl_khr_subgroup_non_uniform_vote
+#define cl_khr_subgroup_ballot
+#define cl_khr_subgroup_non_uniform_arithmetic
+#define cl_khr_subgroup_shuffle
+#define cl_khr_subgroup_shuffle_relative
+#define cl_khr_subgroup_clustered_reduce
----------------
PiotrFusik wrote:
> These are currently defined as "1": https://godbolt.org/z/MnoWeo
> Is the change to blank intentional?
> This should be tested.
Thanks! I think the spec doesn't specify the values but only says that the macros are defined
> Every extension which affects the OpenCL language semantics, syntax or adds built-in functions tothe language must create a preprocessor #define that matches the extension name string. This #define would be available in the language if and only if the extension is supported on a givenimplementation.
However, I think it makes sense to set the value `1` to align with the other extensions that are added by clang.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92231/new/
https://reviews.llvm.org/D92231
More information about the cfe-commits
mailing list