[PATCH] D23712: [OpenCL] Override supported OpenCL extensions with -cl-ext option
Andrew Savonichev via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 24 03:35:00 PDT 2016
asavonic added a comment.
In https://reviews.llvm.org/D23712#520818, @Anastasia wrote:
> What would be the use case to override the supported extensions for the end user?
Some extensions may be supported by the platform in general, but not by the
specific version of the OpenCL runtime.
For example, when the platform supports fp64, the OpenCL runtime may not have a
fp64 built-ins implementation. In this case it is better to disable fp64 by the
compiler, rather than get a link error.
Actually, the use case is similar to the -target-feature option, which allows to
control supported CPU features, e.g enable or disable some instruction set.
https://reviews.llvm.org/D23712
More information about the cfe-commits
mailing list