Skip to content

Commit 5e6642a

Browse files
author
Pavel Chupin
authored
[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.
1 parent 3e76583 commit 5e6642a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

buildbot/configure.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def do_configure(args):
7575
sycl_build_pi_hip_platform = args.hip_platform
7676
sycl_enabled_plugins.append("hip")
7777

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+
if args.enable_all_llvm_targets:
81+
llvm_targets_to_build += ';NVPTX;AMDGPU'
82+
7883
if args.werror or args.ci_defaults:
7984
sycl_werror = 'ON'
8085
xpti_enable_werror = 'ON'
@@ -210,6 +215,7 @@ def main():
210215
parser.add_argument("--hip-platform", type=str, choices=['AMD', 'NVIDIA'], default='AMD', help="choose hardware platform for HIP backend")
211216
parser.add_argument("--arm", action='store_true', help="build ARM support rather than x86")
212217
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")
213219
parser.add_argument("--no-assertions", action='store_true', help="build without assertions")
214220
parser.add_argument("--docs", action='store_true', help="build Doxygen documentation")
215221
parser.add_argument("--werror", action='store_true', help="Treat warnings as errors")

sycl/doc/GetStartedGuide.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,15 @@ python %DPCPP_HOME%\llvm\buildbot\compile.py
116116
You can use the following flags with `configure.py` (full list of available
117117
flags can be found by launching the script with `--help`):
118118

119-
* `--system-ocl` -> Don't download OpenCL headers and library via CMake but use the system ones
120119
* `--werror` -> treat warnings as errors when compiling LLVM
121120
* `--cuda` -> use the cuda backend (see [Nvidia CUDA](#build-dpc-toolchain-with-support-for-nvidia-cuda))
122121
* `--hip` -> use the HIP backend (see [HIP](#build-dpc-toolchain-with-support-for-hip-amd))
123122
* `--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))
124123
* `--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
125126
* `--shared-libs` -> Build shared libraries
126-
* `-t` -> Build type (debug or release)
127+
* `-t` -> Build type (Debug or Release)
127128
* `-o` -> Path to build directory
128129
* `--cmake-gen` -> Set build system type (e.g. `--cmake-gen "Unix Makefiles"`)
129130

0 commit comments

Comments
 (0)