File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,18 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
375
375
# have to be explicity declared in the soruce.
376
376
list ( APPEND flags -Xclang -fdeclare-spirv-builtins )
377
377
378
+ # OpenCL 3.0 extensions
379
+ list ( APPEND flags -cl-std=CL3.0 "SHELL:-Xclang" )
380
+ string (CONCAT CL_3_0_EXTENSIONS
381
+ "-cl-ext="
382
+ "+cl_khr_fp16,"
383
+ "+cl_khr_fp64,"
384
+ "+__opencl_c_3d_image_writes,"
385
+ "+__opencl_c_images,"
386
+ "+cl_khr_3d_image_writes,"
387
+ "+__opencl_c_generic_address_space" )
388
+ list ( APPEND flags ${CL_3_0_EXTENSIONS} )
389
+
378
390
add_libclc_builtin_set (libspirv-${arch_suffix}
379
391
TRIPLE ${t}
380
392
TARGET_ENV libspirv
Original file line number Diff line number Diff line change 9
9
10
10
// Autogenerated by gen-libclc-test.py
11
11
12
- // RUN: %clang -emit-llvm -S -o - %s | FileCheck %s
12
+ // RUN: %clang -emit-llvm -cl-std=CL2.0 - S -o - %s | FileCheck %s
13
13
14
14
#include <spirv/spirv_types.h>
15
15
You can’t perform that action at this time.
0 commit comments