You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Erase image support macros' definition from opencl-c-base.h (#409)
Whenever OCL Clang is called from within compute runtime's compiler
interface, certain OpenCL C extensions may not be enabled depending on
the target HW platform. However, series of LLORG commits* override
this behaviour by defining the feature macros unconditionally.
(*) https://reviews.llvm.org/D95776, https://reviews.llvm.org/D117899
Add a patch to delete such automatic definitions for image support
macros. Once https://reviews.llvm.org/D141297 (LLVM 16) is integrated,
an alternative approach could be to pass `-D__undef_<feature_macro>`
within the Compute Runtime's compiler interface (in applicable
situations) or at the OCL Clang's level (upon detecting the lack of
extension-defining inputs to `-cl-ext`).
Signed-off-by: Artem Gindinson <[email protected]>
0 commit comments