Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL][ESIMD][EMU] Setting default platform for ESIMD_EMULATOR #1226

Merged
merged 2 commits into from
Sep 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@
if lit_config.params.get('ze_debug'):
gpu_run_substitute = " env ZE_DEBUG={ZE_DEBUG} SYCL_DEVICE_FILTER=level_zero:gpu,host ".format(ZE_DEBUG=config.ze_debug)
config.available_features.add('ze_debug'+config.ze_debug)
elif config.sycl_be == "ext_intel_esimd_emulator":
# ESIMD_EMULATOR backend uses CM_EMU library package for
# multi-threaded execution on CPU, and the package emulates
# multiple target platforms. In case user does not specify
# what target platform to emulate, 'skl' is chosen by default.
if not "CM_RT_PLATFORM" in os.environ:
gpu_run_substitute += "CM_RT_PLATFORM=skl "

if platform.system() == "Linux":
gpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu,host ".format(SYCL_PLUGIN=config.sycl_be)
Expand Down