[libclc] [libclc] Build for OpenCL 3.0 and enable all extensions and features (PR #135733)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 21 23:24:01 PDT 2025
================
@@ -429,7 +411,9 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
set( LIBCLC_ARCH_OBJFILE_DIR "${LIBCLC_OBJFILE_DIR}/${arch_suffix}" )
file( MAKE_DIRECTORY ${LIBCLC_ARCH_OBJFILE_DIR} )
- list( APPEND build_flags -cl-std=${opencl_lang_std} )
+ # Build for OpenCL 3.0 and enable all extensions and features independently
+ # of the target or device.
+ list( APPEND build_flags -cl-std=CL3.0 -Xclang -cl-ext=+all )
----------------
arsenm wrote:
The extensions should be enabled locally where needed
https://github.com/llvm/llvm-project/pull/135733
More information about the cfe-commits
mailing list