File tree Expand file tree Collapse file tree 14 files changed +29
-128
lines changed Expand file tree Collapse file tree 14 files changed +29
-128
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,11 @@ clang/**/Driver @mdtoguchi @AGindinson
9
9
# LLVM-SPIRV translator
10
10
llvm-spirv / @ AlexeySotkin @ AlexeySachkov
11
11
12
+ # OpenCL deps
13
+ opencl / @ pvchupin @ vladimirlaz
14
+
12
15
# OpenCL "offline" compiler
13
- opencl-aot / @ dm-vodopyanov @ AlexeySachkov @ romanovvlad
16
+ opencl / opencl -aot / @ dm-vodopyanov @ AlexeySachkov @ romanovvlad
14
17
15
18
# Device library
16
19
libdevice / @ vzakhari @ jinge90
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ def do_compile(args):
32
32
"--build" , abs_obj_dir ,
33
33
"--" ,
34
34
"deploy-sycl-toolchain" ,
35
- "deploy-opencl-aot" ,
36
35
"-j" , str (cpu_count )]
37
36
38
37
if args .verbose :
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def do_configure(args):
13
13
if not os .path .isdir (abs_obj_dir ):
14
14
os .makedirs (abs_obj_dir )
15
15
16
- llvm_external_projects = 'sycl;llvm-spirv;opencl;opencl-aot; libdevice;xpti;xptifw'
16
+ llvm_external_projects = 'sycl;llvm-spirv;opencl;libdevice;xpti;xptifw'
17
17
18
18
llvm_dir = os .path .join (abs_src_dir , "llvm" )
19
19
sycl_dir = os .path .join (abs_src_dir , "sycl" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ set(OCL_LOADER_TAG 5f8249691ec8c25775789498951f8e9eb62c201d)
16
16
17
17
# OpenCL Headers
18
18
if (NOT OpenCL_HEADERS )
19
- message (STATUS "Will fetch OpenCL headers from github.com " )
19
+ message (STATUS "Will fetch OpenCL headers from ${OCL_HEADERS_REPO} " )
20
20
21
21
FetchContent_Declare (ocl-headers
22
22
GIT_REPOSITORY ${OCL_HEADERS_REPO}
@@ -49,7 +49,7 @@ set(OPENCL_ICD_LOADER_HEADERS_DIR
49
49
set (BUILD_SHARED_LIBS ON )
50
50
51
51
if (NOT OpenCL_LIBRARY_SRC )
52
- message (STATUS "Will fetch OpenCL ICD Loader from github.com " )
52
+ message (STATUS "Will fetch OpenCL ICD Loader from ${OCL_LOADER_REPO} " )
53
53
54
54
FetchContent_Declare (ocl-icd
55
55
GIT_REPOSITORY ${OCL_LOADER_REPO}
@@ -69,3 +69,4 @@ endif()
69
69
FetchContent_MakeAvailable (ocl-icd )
70
70
add_library (OpenCL-ICD ALIAS OpenCL )
71
71
72
+ add_subdirectory (opencl-aot )
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.14 )
2
+
3
+ set (LLVM_LINK_COMPONENTS
4
+ ${LLVM_TARGETS_TO_BUILD}
5
+ Support
6
+ )
7
+
8
+ include_directories (${CMAKE_CURRENT_SOURCE_DIR} /include )
9
+ file (GLOB TARGET_SOURCES ${CMAKE_CURRENT_SOURCE_DIR} /source/*.cpp )
10
+
11
+ set (OPENCL_AOT_PROJECT_NAME opencl-aot )
12
+
13
+ add_llvm_tool (${OPENCL_AOT_PROJECT_NAME} ${TARGET_SOURCES} )
14
+
15
+ target_link_libraries (${OPENCL_AOT_PROJECT_NAME}
16
+ PRIVATE
17
+ OpenCL-Headers
18
+ OpenCL-ICD )
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -190,17 +190,11 @@ add_custom_target( sycl-toolchain
190
190
llvm-objcopy
191
191
sycl-post-link
192
192
sycl-ls
193
+ opencl-aot
193
194
${XPTIFW_LIBS}
194
195
COMMENT "Building SYCL compiler toolchain..."
195
196
)
196
197
197
- # Check if opencl-aot tool is enabled.
198
- list (FIND LLVM_ENABLE_PROJECTS opencl-aot OPENCL_AOT_FOUND )
199
- if (NOT OPENCL_AOT_FOUND EQUAL -1 )
200
- add_dependencies (sycl-toolchain opencl-aot )
201
- list (APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS opencl-aot )
202
- endif ()
203
-
204
198
if (SYCL_ENABLE_XPTI_TRACING )
205
199
add_dependencies ( sycl-toolchain xpti )
206
200
if (MSVC )
@@ -246,6 +240,7 @@ set( SYCL_TOOLCHAIN_DEPLOY_COMPONENTS
246
240
sycl-ls
247
241
clang-resource-headers
248
242
OpenCL-Headers
243
+ opencl-aot
249
244
sycl-headers
250
245
sycl-headers-extras
251
246
sycl
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ AOT compiler for each device type:
331
331
# ### CPU
332
332
333
333
* CPU AOT compiler ` opencl-aot` is enabled by default. For more, see
334
- [opencl-aot documentation](../../opencl-aot/README.md).
334
+ [opencl-aot documentation](../../opencl/opencl -aot/README.md).
335
335
336
336
# ### Accelerator
337
337
You can’t perform that action at this time.
0 commit comments