-
Notifications
You must be signed in to change notification settings - Fork 852
[SYCL][CMake] Enable LLVM_LINK_LLVM_DYLIB builds of the SYCL toolchain #23052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: sycl
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -58,6 +58,7 @@ def do_configure(args, passthrough_args): | |||||||||||||||||||||||||
| llvm_enable_sphinx = "OFF" | ||||||||||||||||||||||||||
| llvm_build_shared_libs = "OFF" | ||||||||||||||||||||||||||
| llvm_enable_lld = "OFF" | ||||||||||||||||||||||||||
| llvm_link_dylib = "OFF" | ||||||||||||||||||||||||||
| sycl_enabled_backends = ["opencl"] | ||||||||||||||||||||||||||
| sycl_preview_lib = "ON" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|
@@ -126,6 +127,9 @@ def do_configure(args, passthrough_args): | |||||||||||||||||||||||||
| if args.use_lld: | ||||||||||||||||||||||||||
| llvm_enable_lld = "ON" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| if args.llvm_link_dylib: | ||||||||||||||||||||||||||
| llvm_link_dylib = "ON" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| if args.use_zstd: | ||||||||||||||||||||||||||
| llvm_enable_zstd = "FORCE_ON" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|
@@ -189,6 +193,8 @@ def do_configure(args, passthrough_args): | |||||||||||||||||||||||||
| "-DLLVM_ENABLE_DOXYGEN={}".format(llvm_enable_doxygen), | ||||||||||||||||||||||||||
| "-DLLVM_ENABLE_SPHINX={}".format(llvm_enable_sphinx), | ||||||||||||||||||||||||||
| "-DBUILD_SHARED_LIBS={}".format(llvm_build_shared_libs), | ||||||||||||||||||||||||||
| "-DLLVM_LINK_LLVM_DYLIB={}".format(llvm_link_dylib), | ||||||||||||||||||||||||||
| "-DCLANG_LINK_CLANG_DYLIB={}".format(llvm_link_dylib), | ||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this line necessary ( Please, check: Line 357 in bf6137c
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe what I have is more robust. If cmakelist.txt is modified (unlikely), I still want both of them to be enabled to test our build. Do you want me to modify and skip the setting?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to avoid side effects. Example (I did not verify it though): On Windows, Lines 977 to 983 in c2098bb
Explicit Lines 360 to 363 in bf6137c
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But I let @intel/dpcpp-devops-reviewers make a decision, they own this configuration file. |
||||||||||||||||||||||||||
| "-DSYCL_ENABLE_XPTI_TRACING={}".format(sycl_enable_xpti_tracing), | ||||||||||||||||||||||||||
| "-DLLVM_ENABLE_LLD={}".format(llvm_enable_lld), | ||||||||||||||||||||||||||
| "-DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS={}".format(spirv_enable_dis), | ||||||||||||||||||||||||||
|
|
@@ -405,6 +411,12 @@ def main(): | |||||||||||||||||||||||||
| parser.add_argument( | ||||||||||||||||||||||||||
| "--use-lld", action="store_true", help="Use LLD linker for build" | ||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||
| parser.add_argument( | ||||||||||||||||||||||||||
| "--llvm-link-dylib", | ||||||||||||||||||||||||||
| action="store_true", | ||||||||||||||||||||||||||
| help="Build/link against the shared libLLVM.so and libclang-cpp.so " | ||||||||||||||||||||||||||
| "(sets LLVM_LINK_LLVM_DYLIB=ON and CLANG_LINK_CLANG_DYLIB=ON)", | ||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||
| parser.add_argument( | ||||||||||||||||||||||||||
| "--llvm-external-projects", | ||||||||||||||||||||||||||
| help="Add external projects to build. Add as comma seperated list.", | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to me as the common pattern in nightly, see https://github.com/intel/llvm/pull/23052/changes#diff-f8dae70b8775cf9c5fb547e9210ddc33d1e878401bfcf752b4fbdf16b1b601bbL55 . Can anyone verify that we can ignore this warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah let's ignore this