You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL][Build] Add --enable-all-llvm-targets switch to configure.py (#6153)
Can be used to enable all supported backends in the compiler build,
currently:
* NVPTX
* AMDGPU
Compiler backends do not require any 3rd party software to build and
test, this can be useful in some local testing, for example when
bringing changes from upstream
Also minor fixes to docs based on currently supported switches.
This is NFC for all existing processes.
Copy file name to clipboardExpand all lines: buildbot/configure.py
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,11 @@ def do_configure(args):
75
75
sycl_build_pi_hip_platform=args.hip_platform
76
76
sycl_enabled_plugins.append("hip")
77
77
78
+
# all llvm compiler targets don't require 3rd party dependencies, so can be
79
+
# built/tested even if specific runtimes are not available
80
+
ifargs.enable_all_llvm_targets:
81
+
llvm_targets_to_build+=';NVPTX;AMDGPU'
82
+
78
83
ifargs.werrororargs.ci_defaults:
79
84
sycl_werror='ON'
80
85
xpti_enable_werror='ON'
@@ -210,6 +215,7 @@ def main():
210
215
parser.add_argument("--hip-platform", type=str, choices=['AMD', 'NVIDIA'], default='AMD', help="choose hardware platform for HIP backend")
211
216
parser.add_argument("--arm", action='store_true', help="build ARM support rather than x86")
212
217
parser.add_argument("--enable-esimd-emulator", action='store_true', help="build with ESIMD emulation support")
218
+
parser.add_argument("--enable-all-llvm-targets", action='store_true', help="build compiler with all supported targets, it doesn't change runtime build")
213
219
parser.add_argument("--no-assertions", action='store_true', help="build without assertions")
You can use the following flags with `configure.py` (full list of available
117
117
flags can be found by launching the script with `--help`):
118
118
119
-
*`--system-ocl` -> Don't download OpenCL headers and library via CMake but use the system ones
120
119
*`--werror` -> treat warnings as errors when compiling LLVM
121
120
*`--cuda` -> use the cuda backend (see [Nvidia CUDA](#build-dpc-toolchain-with-support-for-nvidia-cuda))
122
121
*`--hip` -> use the HIP backend (see [HIP](#build-dpc-toolchain-with-support-for-hip-amd))
123
122
*`--hip-platform` -> select the platform used by the hip backend, `AMD` or `NVIDIA` (see [HIP AMD](#build-dpc-toolchain-with-support-for-hip-amd) or see [HIP NVIDIA](#build-dpc-toolchain-with-support-for-hip-nvidia))
124
123
*`--enable-esimd-emulator` -> enable ESIMD CPU emulation (see [ESIMD CPU emulation](#build-dpc-toolchain-with-support-for-esimd-cpu))
124
+
*`--enable-all-llvm-targets` -> build compiler (but not a runtime) with all
125
+
supported targets
125
126
*`--shared-libs` -> Build shared libraries
126
-
*`-t` -> Build type (debug or release)
127
+
*`-t` -> Build type (Debug or Release)
127
128
*`-o` -> Path to build directory
128
129
*`--cmake-gen` -> Set build system type (e.g. `--cmake-gen "Unix Makefiles"`)
0 commit comments