Skip to content

Commit a346c8c

Browse files
committed
Add missing optional core language features to CL3.0 PCH options
Please refer to https://www.khronos.org/registry/OpenCL/specs/3.0-unified/html/OpenCL_C.html#features E.g. adding __opencl_c_device_enqueue/__opencl_c_atomic_scope_all_devices can fix OpenCL CTS test_device_execution and test_c11_atomics.
1 parent 6bb1db2 commit a346c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cl_headers/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ set(CL12 "-cl-std=CL1.2")
5252
set(CL20 "-cl-std=CL2.0")
5353
set(CL30 "-cl-std=CL3.0")
5454
# Add OpenCL C 3.0 Optional features
55-
set(OPTS30 "-cl-ext=+__opencl_c_read_write_images,+__opencl_c_3d_image_writes,+__opencl_c_atomic_order_seq_cst,+__opencl_c_atomic_scope_device,+__opencl_c_generic_address_space,+__opencl_c_pipes,+__opencl_c_subgroups,+__opencl_c_work_group_collective_functions")
55+
set(OPTS30 "-cl-ext=+__opencl_c_3d_image_writes,+__opencl_c_atomic_order_acq_rel,+__opencl_c_atomic_order_seq_cst,+__opencl_c_atomic_scope_device,+__opencl_c_atomic_scope_all_devices,+__opencl_c_device_enqueue,+__opencl_c_generic_address_space,+__opencl_c_fp64,+__opencl_c_images,+__opencl_c_int64,+__opencl_c_pipes,+__opencl_c_program_scope_global_variables,+__opencl_c_read_write_images,+__opencl_c_subgroups,+__opencl_c_work_group_collective_functions")
5656
set(OPTS30_FP64 "-cl-ext=+__opencl_c_fp64")
5757

5858
set(SPIR_TRIPLE "-triple;spir-unknown-unknown")

0 commit comments

Comments
 (0)