Skip to content

Commit

Permalink
[SYCL] Add C++ standard header wrappers for sycl device compilation.
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
  • Loading branch information
vladimirlaz committed Jan 22, 2019
1 parent 120b4b5 commit d35c08f
Show file tree
Hide file tree
Showing 3 changed files with 2,036 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clang/lib/Headers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ set(cuda_wrapper_files
cuda_wrappers/new
)

set(sycl_wrapper_files
sycl_wrappers/algorithm
sycl_wrappers/random
)

set(output_dir ${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION}/include)

# Generate arm_neon.h
Expand All @@ -134,7 +139,7 @@ clang_tablegen(arm_fp16.h -gen-arm-fp16
SOURCE ${CLANG_SOURCE_DIR}/include/clang/Basic/arm_fp16.td)

set(out_files)
foreach( f ${files} ${cuda_wrapper_files} )
foreach( f ${files} ${cuda_wrapper_files} ${sycl_wrapper_files} )
set( src ${CMAKE_CURRENT_SOURCE_DIR}/${f} )
set( dst ${output_dir}/${f} )
add_custom_command(OUTPUT ${dst}
Expand Down
Loading

0 comments on commit d35c08f

Please sign in to comment.