Skip to content

Commit 7b7437b

Browse files
committed
Address some feedback
1 parent b5ab22d commit 7b7437b

File tree

85 files changed

+100
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+100
-170
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ sycl/include/sycl/detail/ur.hpp @intel/unified-runtime-reviewers
4040
sycl/source/detail/posix_ur.cpp @intel/unified-runtime-reviewers
4141
sycl/source/detail/ur.cpp @intel/unified-runtime-reviewers
4242
sycl/source/detail/windows_ur.cpp @intel/unified-runtime-reviewers
43-
sycl/test-e2e/Plugin/ @intel/unified-runtime-reviewers
43+
sycl/test-e2e/Adapters/ @intel/unified-runtime-reviewers
4444

4545
# Win Proxy Loader
46-
sycl/pi_win_proxy_loader @intel/llvm-reviewers-runtime
47-
sycl/test-e2e/Plugin/dll-detach-order.cpp @intel/llvm-reviewers-runtime
46+
sycl/ur_win_proxy_loader @intel/llvm-reviewers-runtime
47+
sycl/test-e2e/Adapters/dll-detach-order.cpp @intel/llvm-reviewers-runtime
4848

4949
# CUDA specific runtime implementations
5050
sycl/include/sycl/ext/oneapi/experimental/cuda/ @intel/llvm-reviewers-cuda

.github/workflows/sycl-linux-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ jobs:
169169
--cmake-opt=-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
170170
--cmake-opt="-DLLVM_INSTALL_UTILS=ON" \
171171
--cmake-opt="-DNATIVECPU_USE_OCK=Off" \
172-
--cmake-opt="-DSYCL_PI_TESTS=OFF" \
173172
--cmake-opt="-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV"
174173
- name: Compile
175174
id: build

.github/workflows/sycl-macos-build-and-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,5 @@ jobs:
5353
--cmake-opt=-DCMAKE_C_COMPILER_LAUNCHER=ccache \
5454
--cmake-opt=-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
5555
--cmake-opt="-DLLVM_INSTALL_UTILS=ON" \
56-
--cmake-opt="-DSYCL_PI_TESTS=OFF"
5756
- name: Compile
5857
run: cmake --build $GITHUB_WORKSPACE/build --target deploy-sycl-toolchain

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ To contribute:
5858
- [The seven rules of a great Git commit message](https://cbea.ms/git-commit)
5959
are recommended read and follow.
6060
- To a reasonable extent, title tags can be used to signify the component
61-
changed, e.g.: `[PI]`, `[CUDA]`, `[Doc]`.
61+
changed, e.g.: `[UR]`, `[CUDA]`, `[Doc]`.
6262
- Create a pull request (PR) for your changes following
6363
[Creating a pull request instructions](https://help.github.com/articles/creating-a-pull-request/).
6464
- Make sure PR has a good description explaining all of the changes made,

buildbot/configure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def do_configure(args):
6868
if sys.platform != "darwin":
6969
sycl_enabled_backends.append("level_zero")
7070

71-
# lld is needed on Windows or for the HIP plugin on AMD
71+
# lld is needed on Windows or for the HIP adapter on AMD
7272
if platform.system() == "Windows" or (args.hip and args.hip_platform == "AMD"):
7373
llvm_enable_projects += ";lld"
7474

@@ -152,8 +152,8 @@ def do_configure(args):
152152
libclc_targets_to_build += libclc_nvidia_target_names
153153
libclc_gen_remangled_variants = "ON"
154154

155-
if args.enable_plugin:
156-
sycl_enabled_backends += args.enable_plugin
155+
if args.enable_backends:
156+
sycl_enabled_backends += args.enable_backends
157157

158158
if args.disable_preview_lib:
159159
sycl_preview_lib = "OFF"
@@ -372,7 +372,7 @@ def main():
372372
parser.add_argument(
373373
"--ci-defaults", action="store_true", help="Enable default CI parameters"
374374
)
375-
parser.add_argument("--enable-plugin", action="append", help="Enable SYCL plugin")
375+
parser.add_argument("--enable-backends", action="append", help="Enable SYCL backend")
376376
parser.add_argument(
377377
"--disable-preview-lib",
378378
action="store_true",

sycl/cmake/modules/AddSYCL.cmake

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -33,67 +33,3 @@ function(add_sycl_library LIB_NAME TYPE)
3333
# TODO remove add_common_options
3434
add_common_options(${LIB_NAME})
3535
endfunction()
36-
37-
# current ur adapter dependency managing is a bit hacky, we should try to copy
38-
# this as closely as possible instead
39-
function(add_sycl_plugin PLUGIN_NAME)
40-
cmake_parse_arguments("ARG"
41-
""
42-
""
43-
"SOURCES;INCLUDE_DIRS;LIBRARIES;HEADER"
44-
${ARGN}
45-
)
46-
47-
add_sycl_library("pi_${PLUGIN_NAME}" SHARED
48-
LINKER_SCRIPT "${PROJECT_SOURCE_DIR}/plugins/ld-version-script.txt"
49-
SOURCES ${ARG_SOURCES}
50-
INCLUDE_DIRS
51-
${ARG_INCLUDE_DIRS}
52-
${sycl_inc_dir}
53-
LIBRARIES
54-
${ARG_LIBRARIES}
55-
OpenCL-Headers
56-
)
57-
58-
# All SYCL plugins use UR sources.
59-
# Disable errors from warnings and apply other workarounds while building the UR.
60-
if(WIN32)
61-
target_compile_options("pi_${PLUGIN_NAME}" PRIVATE /WX- /UUNICODE /DUSE_Z7=ON)
62-
else()
63-
target_compile_options("pi_${PLUGIN_NAME}" PRIVATE -Wno-error)
64-
endif()
65-
66-
# Install feature test header
67-
if (NOT "${ARG_HEADER}" STREQUAL "")
68-
get_filename_component(HEADER_NAME ${ARG_HEADER} NAME)
69-
configure_file(
70-
${ARG_HEADER}
71-
${SYCL_INCLUDE_BUILD_DIR}/sycl/detail/plugins/${PLUGIN_NAME}/${HEADER_NAME}
72-
COPYONLY)
73-
74-
install(FILES ${ARG_HEADER}
75-
DESTINATION ${SYCL_INCLUDE_DIR}/sycl/detail/plugins/${PLUGIN_NAME}
76-
COMPONENT pi_${PLUGIN_NAME})
77-
endif()
78-
79-
install(TARGETS pi_${PLUGIN_NAME}
80-
LIBRARY DESTINATION "lib${LLVM_LIBDIR_SUFFIX}" COMPONENT pi_${PLUGIN_NAME}
81-
RUNTIME DESTINATION "bin" COMPONENT pi_${PLUGIN_NAME})
82-
83-
set (manifest_file
84-
${CMAKE_CURRENT_BINARY_DIR}/install_manifest_pi_${PLUGIN_NAME}.txt)
85-
add_custom_command(OUTPUT ${manifest_file}
86-
COMMAND "${CMAKE_COMMAND}"
87-
"-DCMAKE_INSTALL_COMPONENT=pi_${PLUGIN_NAME}"
88-
-P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
89-
COMMENT "Deploying component pi_${PLUGIN_NAME}"
90-
USES_TERMINAL
91-
)
92-
add_custom_target(install-sycl-plugin-${PLUGIN_NAME}
93-
DEPENDS
94-
${manifest_file} pi_${PLUGIN_NAME}
95-
)
96-
97-
set_property(GLOBAL APPEND PROPERTY SYCL_TOOLCHAIN_INSTALL_COMPONENTS
98-
pi_${PLUGIN_NAME})
99-
endfunction()

0 commit comments

Comments
 (0)