Skip to content

Commit 71802cc

Browse files
Adding command line option for disabling ESIMD_EMULATOR build
1 parent 6f1034e commit 71802cc

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

buildbot/configure.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def do_configure(args):
3232
libclc_targets_to_build = ''
3333
libclc_gen_remangled_variants = 'OFF'
3434
sycl_build_pi_cuda = 'OFF'
35+
sycl_build_pi_esimd_emulator = 'ON'
3536
sycl_build_pi_hip = 'OFF'
3637
sycl_build_pi_hip_platform = 'AMD'
3738
sycl_clang_extra_flags = ''
@@ -49,6 +50,9 @@ def do_configure(args):
4950
if args.arm:
5051
llvm_targets_to_build = 'ARM;AArch64'
5152

53+
if args.disable_esimd_emulator:
54+
sycl_build_pi_esimd_emulator = 'OFF'
55+
5256
if args.cuda or args.hip:
5357
llvm_enable_projects += ';libclc'
5458

@@ -143,6 +147,7 @@ def do_configure(args):
143147
"-DBUILD_SHARED_LIBS={}".format(llvm_build_shared_libs),
144148
"-DSYCL_ENABLE_XPTI_TRACING={}".format(sycl_enable_xpti_tracing),
145149
"-DLLVM_ENABLE_LLD={}".format(llvm_enable_lld),
150+
"-DSYCL_BUILD_PI_ESIMD_EMULATOR={}".format(sycl_build_pi_esimd_emulator),
146151
"-DXPTI_ENABLE_WERROR={}".format(xpti_enable_werror),
147152
"-DSYCL_CLANG_EXTRA_FLAGS={}".format(sycl_clang_extra_flags)
148153
]
@@ -208,6 +213,7 @@ def main():
208213
parser.add_argument("--hip-platform", type=str, choices=['AMD', 'NVIDIA'], default='AMD', help="choose hardware platform for HIP backend")
209214
parser.add_argument("--hip-amd-arch", type=str, help="Sets AMD gpu architecture for llvm lit tests, this is only needed for the HIP backend and AMD platform")
210215
parser.add_argument("--arm", action='store_true', help="build ARM support rather than x86")
216+
parser.add_argument("--disable-esimd-emulator", action='store_true', help="exclude ESIMD_EMULATOR support")
211217
parser.add_argument("--no-assertions", action='store_true', help="build without assertions")
212218
parser.add_argument("--docs", action='store_true', help="build Doxygen documentation")
213219
parser.add_argument("--no-werror", action='store_true', help="Don't treat warnings as errors")

sycl/plugins/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ endif()
1515
add_subdirectory(opencl)
1616
add_subdirectory(level_zero)
1717

18-
# TODO : Remove 'if (NOT MSVC)' when CM_EMU supports Windows
19-
# environment
20-
if (NOT MSVC)
21-
add_subdirectory(esimd_emulator)
18+
if(SYCL_BUILD_PI_ESIMD_EMULATOR)
19+
# TODO : Remove 'if (NOT MSVC)' when CM_EMU supports Windows
20+
# environment
21+
if (NOT MSVC)
22+
add_subdirectory(esimd_emulator)
23+
endif()
2224
endif()

0 commit comments

Comments
 (0)