Skip to content

Commit e287ee5

Browse files
authored
Add OCL3.0 support (#343)
* Add OCL3.0 support Signed-off-by: Haonan Yang <[email protected]> * Remove duplicated code Signed-off-by: Haonan Yang <[email protected]>
1 parent 04fe2e5 commit e287ee5

File tree

2 files changed

+4626
-1
lines changed

2 files changed

+4626
-1
lines changed

cl_headers/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ else()
6464
set(HOST_TRIPLE "${SPIR_TRIPLE}")
6565
endif()
6666

67-
set(OPTS -cl-ext=+all,-cl_khr_fp64)
67+
set(OPTS -cl-ext=+all,-cl_khr_fp64,-__opencl_c_fp64)
6868
create_pcm(opencl-c-12-spir.pcm cl12spir opencl-c-base.h "${SPIR_TRIPLE};${CL12};${OPTS}" "${DEPS}")
6969
create_pcm(opencl-c-20-spir.pcm cl20spir opencl-c-base.h "${SPIR_TRIPLE};${CL20};${OPTS}" "${DEPS}")
7070
create_pcm(opencl-c-30-spir.pcm cl30spir opencl-c-base.h "${SPIR_TRIPLE};${CL30};${OPTS};${OPTS30}" "${DEPS}")

0 commit comments

Comments
 (0)