Skip to content

Commit 1688e41

Browse files
authored
[SYCL] Rename sycl-fusion to sycl-jit (#14762)
This patch renames the directory (`sycl-fusion` to `sycl-jit`) as well as the involved library names (following the same principle: `fusion` to `jit`). To keep the user facing names consistent, buildbot switches were updated. And finally the codeowners file had to reflect the directory change.
1 parent ffd443c commit 1688e41

File tree

96 files changed

+161
-158
lines changed

Some content is hidden

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

96 files changed

+161
-158
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ buildbot/ @intel/dpcpp-devops-reviewers
103103
devops/ @intel/dpcpp-devops-reviewers
104104

105105
# Kernel fusion JIT compiler
106-
sycl-fusion/ @intel/dpcpp-kernel-fusion-reviewers
106+
sycl-jit/ @intel/dpcpp-kernel-fusion-reviewers
107107
sycl/doc/design/KernelFusionJIT.md @intel/dpcpp-kernel-fusion-reviewers
108108
sycl/doc/extensions/experimental/sycl_ext_codeplay_kernel_fusion.asciidoc @intel/dpcpp-kernel-fusion-reviewers
109109
sycl/include/sycl/ext/codeplay/experimental/fusion_properties.hpp @intel/dpcpp-kernel-fusion-reviewers

.github/workflows/sycl-detect-changes.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
clang: &clang
3131
- *llvm
3232
- 'clang/**'
33-
sycl_fusion: &sycl-fusion
33+
sycl_jit: &sycl-jit
3434
- *llvm
35-
- 'sycl-fusion/**'
35+
- 'sycl-jit/**'
3636
xptifw: &xptifw
3737
- 'xptifw/**'
3838
libclc: &libclc
@@ -41,7 +41,7 @@ jobs:
4141
- 'libclc/**'
4242
sycl: &sycl
4343
- *clang
44-
- *sycl-fusion
44+
- *sycl-jit
4545
- *llvm_spirv
4646
- *xptifw
4747
- *libclc
@@ -84,7 +84,7 @@ jobs:
8484
return '${{ steps.changes.outputs.changes }}';
8585
}
8686
// Treat everything as changed for huge PRs.
87-
return ["llvm", "llvm_spirv", "clang", "sycl_fusion", "xptifw", "libclc", "sycl", "ci", "esimd"];
87+
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd"];
8888
8989
- run: echo '${{ steps.result.outputs.result }}'
9090

buildbot/configure.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ def do_configure(args):
3131
libclc_amd_target_names = ";amdgcn--amdhsa"
3232
libclc_nvidia_target_names = ";nvptx64--nvidiacl"
3333

34-
sycl_enable_fusion = "OFF"
35-
if not args.disable_fusion:
36-
llvm_external_projects += ";sycl-fusion"
37-
sycl_enable_fusion = "ON"
34+
sycl_enable_jit = "OFF"
35+
if not args.disable_jit:
36+
llvm_external_projects += ";sycl-jit"
37+
sycl_enable_jit = "ON"
3838

3939
if args.llvm_external_projects:
4040
llvm_external_projects += ";" + args.llvm_external_projects.replace(",", ";")
@@ -45,7 +45,7 @@ def do_configure(args):
4545
xpti_dir = os.path.join(abs_src_dir, "xpti")
4646
xptifw_dir = os.path.join(abs_src_dir, "xptifw")
4747
libdevice_dir = os.path.join(abs_src_dir, "libdevice")
48-
fusion_dir = os.path.join(abs_src_dir, "sycl-fusion")
48+
jit_dir = os.path.join(abs_src_dir, "sycl-jit")
4949
llvm_targets_to_build = args.host_target
5050
llvm_enable_projects = "clang;" + llvm_external_projects
5151
libclc_build_native = "OFF"
@@ -174,7 +174,7 @@ def do_configure(args):
174174
"-DXPTI_SOURCE_DIR={}".format(xpti_dir),
175175
"-DLLVM_EXTERNAL_XPTIFW_SOURCE_DIR={}".format(xptifw_dir),
176176
"-DLLVM_EXTERNAL_LIBDEVICE_SOURCE_DIR={}".format(libdevice_dir),
177-
"-DLLVM_EXTERNAL_SYCL_FUSION_SOURCE_DIR={}".format(fusion_dir),
177+
"-DLLVM_EXTERNAL_SYCL_JIT_SOURCE_DIR={}".format(jit_dir),
178178
"-DLLVM_ENABLE_PROJECTS={}".format(llvm_enable_projects),
179179
"-DSYCL_BUILD_PI_HIP_PLATFORM={}".format(sycl_build_pi_hip_platform),
180180
"-DLLVM_BUILD_TOOLS=ON",
@@ -189,7 +189,7 @@ def do_configure(args):
189189
"-DXPTI_ENABLE_WERROR={}".format(xpti_enable_werror),
190190
"-DSYCL_CLANG_EXTRA_FLAGS={}".format(sycl_clang_extra_flags),
191191
"-DSYCL_ENABLE_PLUGINS={}".format(";".join(set(sycl_enabled_plugins))),
192-
"-DSYCL_ENABLE_KERNEL_FUSION={}".format(sycl_enable_fusion),
192+
"-DSYCL_ENABLE_EXTENSION_JIT={}".format(sycl_enable_jit),
193193
"-DSYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB={}".format(sycl_preview_lib),
194194
"-DBUG_REPORT_URL=https://github.com/intel/llvm/issues",
195195
]
@@ -379,9 +379,9 @@ def main():
379379
help="Disable building of the SYCL runtime major release preview library",
380380
)
381381
parser.add_argument(
382-
"--disable-fusion",
382+
"--disable-jit",
383383
action="store_true",
384-
help="Disable the kernel fusion JIT compiler",
384+
help="Disable the kernel JIT compiler for AMD and Nvidia",
385385
)
386386
parser.add_argument(
387387
"--add_security_flags",

sycl-fusion/CMakeLists.txt renamed to sycl-jit/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ set(SYCL_JIT_BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
1010
set(LLVM_SPIRV_INCLUDE_DIRS "${LLVM_MAIN_SRC_DIR}/../llvm-spirv/include")
1111

1212
# Set library-wide warning options.
13-
set(SYCL_FUSION_WARNING_FLAGS -Wall -Wextra)
13+
set(SYCL_JIT_WARNING_FLAGS -Wall -Wextra)
1414

15-
option(SYCL_FUSION_ENABLE_WERROR "Treat all warnings as errors in SYCL kernel fusion library" ON)
16-
if(SYCL_FUSION_ENABLE_WERROR)
17-
list(APPEND SYCL_FUSION_WARNING_FLAGS -Werror)
18-
endif(SYCL_FUSION_ENABLE_WERROR)
15+
option(SYCL_JIT_ENABLE_WERROR "Treat all warnings as errors in SYCL kernel JIT library" ON)
16+
if(SYCL_JIT_ENABLE_WERROR)
17+
list(APPEND SYCL_JIT_WARNING_FLAGS -Werror)
18+
endif(SYCL_JIT_ENABLE_WERROR)
1919

2020
if(WIN32)
21-
message(WARNING "Kernel fusion not yet supported on Windows")
21+
message(WARNING "Kernel JIT not yet supported on Windows")
2222
else(WIN32)
2323
add_subdirectory(common)
2424
add_subdirectory(jit-compiler)
File renamed without changes.

sycl-fusion/common/CMakeLists.txt renamed to sycl-jit/common/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
add_llvm_library(sycl-fusion-common
1+
add_llvm_library(sycl-jit-common
22
lib/NDRangesHelper.cpp
33

44
LINK_COMPONENTS
55
Support
66
)
77

8-
target_compile_options(sycl-fusion-common PRIVATE ${SYCL_FUSION_WARNING_FLAGS})
8+
target_compile_options(sycl-jit-common PRIVATE ${SYCL_JIT_WARNING_FLAGS})
99

1010
# Mark LLVM headers as system headers to ignore warnigns in them. This
1111
# classification remains intact even if the same path is added as a normal
1212
# include path in GCC and Clang.
13-
target_include_directories(sycl-fusion-common
13+
target_include_directories(sycl-jit-common
1414
SYSTEM PRIVATE
1515
${LLVM_MAIN_INCLUDE_DIR}
1616
)
17-
target_include_directories(sycl-fusion-common
17+
target_include_directories(sycl-jit-common
1818
PUBLIC
1919
${CMAKE_CURRENT_SOURCE_DIR}/include
2020
${CMAKE_CURRENT_SOURCE_DIR}/lib
2121
)
2222

23-
add_dependencies(sycl-fusion-common sycl-headers)
23+
add_dependencies(sycl-jit-common sycl-headers)
2424

2525
if (BUILD_SHARED_LIBS)
2626
if(NOT MSVC AND NOT APPLE)
2727
# Manage symbol visibility through the linker to make sure no LLVM symbols
2828
# are exported and confuse the drivers.
2929
set(linker_script "${CMAKE_CURRENT_SOURCE_DIR}/ld-version-script.txt")
3030
target_link_libraries(
31-
sycl-fusion-common PRIVATE "-Wl,--version-script=${linker_script}")
32-
set_target_properties(sycl-fusion-common
31+
sycl-jit-common PRIVATE "-Wl,--version-script=${linker_script}")
32+
set_target_properties(sycl-jit-common
3333
PROPERTIES
3434
LINK_DEPENDS
3535
${linker_script})
File renamed without changes.

sycl-fusion/jit-compiler/CMakeLists.txt renamed to sycl-jit/jit-compiler/CMakeLists.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
add_llvm_library(sycl-fusion
2+
add_llvm_library(sycl-jit
33
lib/KernelFusion.cpp
44
lib/translation/KernelTranslation.cpp
55
lib/translation/SPIRVLLVMTranslation.cpp
@@ -31,17 +31,17 @@ add_llvm_library(sycl-fusion
3131
${LLVM_TARGETS_TO_BUILD}
3232
)
3333

34-
target_compile_options(sycl-fusion PRIVATE ${SYCL_FUSION_WARNING_FLAGS})
34+
target_compile_options(sycl-jit PRIVATE ${SYCL_JIT_WARNING_FLAGS})
3535

3636
# Mark LLVM and SPIR-V headers as system headers to ignore warnigns in them.
3737
# This classification remains intact even if the same paths are added as normal
3838
# include paths in GCC and Clang.
39-
target_include_directories(sycl-fusion
39+
target_include_directories(sycl-jit
4040
SYSTEM PRIVATE
4141
${LLVM_MAIN_INCLUDE_DIR}
4242
${LLVM_SPIRV_INCLUDE_DIRS}
4343
)
44-
target_include_directories(sycl-fusion
44+
target_include_directories(sycl-jit
4545
PUBLIC
4646
$<INSTALL_INTERFACE:include>
4747
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
@@ -52,29 +52,29 @@ target_include_directories(sycl-fusion
5252

5353
find_package(Threads REQUIRED)
5454

55-
target_link_libraries(sycl-fusion
55+
target_link_libraries(sycl-jit
5656
PRIVATE
57-
sycl-fusion-common
57+
sycl-jit-common
5858
LLVMSPIRVLib
59-
SYCLKernelFusionPasses
59+
SYCLKernelJITPasses
6060
${CMAKE_THREAD_LIBS_INIT}
6161
)
6262

63-
add_dependencies(sycl-fusion sycl-headers)
63+
add_dependencies(sycl-jit sycl-headers)
6464

6565
if("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
66-
target_compile_definitions(sycl-fusion PRIVATE FUSION_JIT_SUPPORT_PTX)
66+
target_compile_definitions(sycl-jit PRIVATE JIT_SUPPORT_PTX)
6767
endif()
6868

6969
if("AMDGPU" IN_LIST LLVM_TARGETS_TO_BUILD)
70-
target_compile_definitions(sycl-fusion PRIVATE FUSION_JIT_SUPPORT_AMDGCN)
70+
target_compile_definitions(sycl-jit PRIVATE JIT_SUPPORT_AMDGCN)
7171
endif()
7272

7373
if(NOT MSVC AND NOT APPLE)
7474
# Manage symbol visibility through the linker to make sure no LLVM symbols
7575
# are exported and confuse the drivers.
7676
set(linker_script "${CMAKE_CURRENT_SOURCE_DIR}/ld-version-script.txt")
7777
target_link_libraries(
78-
sycl-fusion PRIVATE "-Wl,--version-script=${linker_script}")
79-
set_target_properties(sycl-fusion PROPERTIES LINK_DEPENDS ${linker_script})
78+
sycl-jit PRIVATE "-Wl,--version-script=${linker_script}")
79+
set_target_properties(sycl-jit PROPERTIES LINK_DEPENDS ${linker_script})
8080
endif()

sycl-fusion/jit-compiler/lib/KernelFusion.cpp renamed to sycl-jit/jit-compiler/lib/KernelFusion.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ static bool isTargetFormatSupported(BinaryFormat TargetFormat) {
5252
case BinaryFormat::SPIRV:
5353
return true;
5454
case BinaryFormat::PTX: {
55-
#ifdef FUSION_JIT_SUPPORT_PTX
55+
#ifdef JIT_SUPPORT_PTX
5656
return true;
57-
#else // FUSION_JIT_SUPPORT_PTX
57+
#else // JIT_SUPPORT_PTX
5858
return false;
59-
#endif // FUSION_JIT_SUPPORT_PTX
59+
#endif // JIT_SUPPORT_PTX
6060
}
6161
case BinaryFormat::AMDGCN: {
62-
#ifdef FUSION_JIT_SUPPORT_AMDGCN
62+
#ifdef JIT_SUPPORT_AMDGCN
6363
return true;
64-
#else // FUSION_JIT_SUPPORT_AMDGCN
64+
#else // JIT_SUPPORT_AMDGCN
6565
return false;
66-
#endif // FUSION_JIT_SUPPORT_AMDGCN
66+
#endif // JIT_SUPPORT_AMDGCN
6767
}
6868
default:
6969
return false;

sycl-fusion/jit-compiler/lib/translation/KernelTranslation.cpp renamed to sycl-jit/jit-compiler/lib/translation/KernelTranslation.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ llvm::Expected<KernelBinary *> KernelTranslator::translateToPTX(
231231
SYCLKernelInfo &KernelInfo, llvm::Module &Mod, JITContext &JITCtx,
232232
[[maybe_unused]] const std::string &TargetCPU,
233233
[[maybe_unused]] const std::string &TargetFeatures) {
234-
#ifndef FUSION_JIT_SUPPORT_PTX
234+
#ifndef JIT_SUPPORT_PTX
235235
(void)KernelInfo;
236236
(void)Mod;
237237
(void)JITCtx;
238238
return createStringError(inconvertibleErrorCode(),
239239
"PTX translation not supported in this build");
240-
#else // FUSION_JIT_SUPPORT_PTX
240+
#else // JIT_SUPPORT_PTX
241241
LLVMInitializeNVPTXTargetInfo();
242242
LLVMInitializeNVPTXTarget();
243243
LLVMInitializeNVPTXAsmPrinter();
@@ -306,20 +306,20 @@ llvm::Expected<KernelBinary *> KernelTranslator::translateToPTX(
306306
}
307307

308308
return &JITCtx.emplaceKernelBinary(std::move(PTXASM), BinaryFormat::PTX);
309-
#endif // FUSION_JIT_SUPPORT_PTX
309+
#endif // JIT_SUPPORT_PTX
310310
}
311311

312312
llvm::Expected<KernelBinary *> KernelTranslator::translateToAMDGCN(
313313
SYCLKernelInfo &KernelInfo, llvm::Module &Mod, JITContext &JITCtx,
314314
[[maybe_unused]] const std::string &TargetCPU,
315315
[[maybe_unused]] const std::string &TargetFeatures) {
316-
#ifndef FUSION_JIT_SUPPORT_AMDGCN
316+
#ifndef JIT_SUPPORT_AMDGCN
317317
(void)KernelInfo;
318318
(void)Mod;
319319
(void)JITCtx;
320320
return createStringError(inconvertibleErrorCode(),
321321
"AMDGPU translation not supported in this build");
322-
#else // FUSION_JIT_SUPPORT_AMDGCN
322+
#else // JIT_SUPPORT_AMDGCN
323323

324324
LLVMInitializeAMDGPUTargetInfo();
325325
LLVMInitializeAMDGPUTarget();
@@ -383,5 +383,5 @@ llvm::Expected<KernelBinary *> KernelTranslator::translateToAMDGCN(
383383
}
384384

385385
return &JITCtx.emplaceKernelBinary(std::move(AMDObj), BinaryFormat::AMDGCN);
386-
#endif // FUSION_JIT_SUPPORT_AMDGCN
386+
#endif // JIT_SUPPORT_AMDGCN
387387
}

sycl-fusion/passes/CMakeLists.txt renamed to sycl-jit/passes/CMakeLists.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Module library for usage as library/pass-plugin with LLVM opt.
2-
add_llvm_library(SYCLKernelFusion MODULE
2+
add_llvm_library(SYCLKernelJIT MODULE
33
SYCLFusionPasses.cpp
44
kernel-fusion/Builtins.cpp
55
kernel-fusion/SYCLKernelFusion.cpp
@@ -15,39 +15,39 @@ add_llvm_library(SYCLKernelFusion MODULE
1515
intrinsics_gen
1616
)
1717

18-
target_compile_options(SYCLKernelFusion PRIVATE ${SYCL_FUSION_WARNING_FLAGS})
18+
target_compile_options(SYCLKernelJIT PRIVATE ${SYCL_JIT_WARNING_FLAGS})
1919

2020
# Mark LLVM headers as system headers to ignore warnigns in them. This
2121
# classification remains intact even if the same path is added as a normal
2222
# include path in GCC and Clang.
23-
target_include_directories(SYCLKernelFusion
23+
target_include_directories(SYCLKernelJIT
2424
SYSTEM PRIVATE
2525
${LLVM_MAIN_INCLUDE_DIR}
2626
)
27-
target_include_directories(SYCLKernelFusion
27+
target_include_directories(SYCLKernelJIT
2828
PUBLIC
2929
${CMAKE_CURRENT_SOURCE_DIR}
3030
PRIVATE
3131
${SYCL_JIT_BASE_DIR}/common/include
3232
)
3333

34-
target_link_libraries(SYCLKernelFusion
34+
target_link_libraries(SYCLKernelJIT
3535
PRIVATE
36-
sycl-fusion-common
36+
sycl-jit-common
3737
)
3838

39-
add_dependencies(SYCLKernelFusion sycl-headers)
39+
add_dependencies(SYCLKernelJIT sycl-headers)
4040

4141
if("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
42-
target_compile_definitions(SYCLKernelFusion PRIVATE FUSION_JIT_SUPPORT_PTX)
42+
target_compile_definitions(SYCLKernelJIT PRIVATE JIT_SUPPORT_PTX)
4343
endif()
4444

4545
if("AMDGPU" IN_LIST LLVM_TARGETS_TO_BUILD)
46-
target_compile_definitions(SYCLKernelFusion PRIVATE FUSION_JIT_SUPPORT_AMDGCN)
46+
target_compile_definitions(SYCLKernelJIT PRIVATE JIT_SUPPORT_AMDGCN)
4747
endif()
4848

4949
# Static library for linking with the jit_compiler
50-
add_llvm_library(SYCLKernelFusionPasses
50+
add_llvm_library(SYCLKernelJITPasses
5151
SYCLFusionPasses.cpp
5252
kernel-fusion/Builtins.cpp
5353
kernel-fusion/SYCLKernelFusion.cpp
@@ -71,33 +71,33 @@ add_llvm_library(SYCLKernelFusionPasses
7171
SYCLLowerIR
7272
)
7373

74-
target_compile_options(SYCLKernelFusionPasses PRIVATE ${SYCL_FUSION_WARNING_FLAGS})
74+
target_compile_options(SYCLKernelJITPasses PRIVATE ${SYCL_JIT_WARNING_FLAGS})
7575

7676
# Mark LLVM headers as system headers to ignore warnigns in them. This
7777
# classification remains intact even if the same path is added as a normal
7878
# include path in GCC and Clang.
79-
target_include_directories(SYCLKernelFusionPasses
79+
target_include_directories(SYCLKernelJITPasses
8080
SYSTEM PRIVATE
8181
${LLVM_MAIN_INCLUDE_DIR}
8282
)
83-
target_include_directories(SYCLKernelFusionPasses
83+
target_include_directories(SYCLKernelJITPasses
8484
PUBLIC
8585
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
8686
PRIVATE
8787
${SYCL_JIT_BASE_DIR}/common/include
8888
)
8989

90-
target_link_libraries(SYCLKernelFusionPasses
90+
target_link_libraries(SYCLKernelJITPasses
9191
PRIVATE
92-
sycl-fusion-common
92+
sycl-jit-common
9393
)
9494

95-
add_dependencies(SYCLKernelFusionPasses sycl-headers)
95+
add_dependencies(SYCLKernelJITPasses sycl-headers)
9696

9797
if("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
98-
target_compile_definitions(SYCLKernelFusionPasses PRIVATE FUSION_JIT_SUPPORT_PTX)
98+
target_compile_definitions(SYCLKernelJITPasses PRIVATE JIT_SUPPORT_PTX)
9999
endif()
100100

101101
if("AMDGPU" IN_LIST LLVM_TARGETS_TO_BUILD)
102-
target_compile_definitions(SYCLKernelFusionPasses PRIVATE FUSION_JIT_SUPPORT_AMDGCN)
102+
target_compile_definitions(SYCLKernelJITPasses PRIVATE JIT_SUPPORT_AMDGCN)
103103
endif()

0 commit comments

Comments
 (0)