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

[SYCL] Enable tests for accelerator on windows #39

Merged
merged 6 commits into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion SYCL/Scheduler/HostAccDestruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER
// RUN: env SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER
// RUN: env SYCL_PI_TRACE=2 %ACC_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER
// XFAIL: opencl && windows
//==---------------------- HostAccDestruction.cpp --------------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
7 changes: 1 addition & 6 deletions SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@

# ESIMD-specific setup. Requires OpenCL for now.
if "opencl" in config.available_features:
print(config.available_features)
esimd_run_substitute = " env SYCL_BE=PI_OPENCL SYCL_DEVICE_TYPE=GPU SYCL_PROGRAM_COMPILE_OPTIONS=-vc-codegen"
config.substitutions.append( ('%ESIMD_RUN_PLACEHOLDER', esimd_run_substitute) )
config.substitutions.append( ('%clangxx-esimd', config.dpcpp_compiler +
Expand Down Expand Up @@ -197,11 +196,7 @@

acc_run_substitute = "true"
acc_check_substitute = ""
# Tests executed with FPGA emu on Windows are not stable
# Disabled until FPGA emulator is fixed
if platform.system() == "Windows":
lit_config.warning("Accelerator device is disabled on Windows because of instability")
elif 'acc' in config.target_devices.split(','):
if 'acc' in config.target_devices.split(','):
found_at_least_one_device = True
lit_config.note("Tests accelerator device")
acc_run_substitute = " env SYCL_DEVICE_TYPE=ACC "
Expand Down