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

[SYCL][FPGA][NFC] Change AOT tool requirement for FPGA emulator #807

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
4 changes: 2 additions & 2 deletions SYCL/AOT/accelerator.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//==--- accelerator.cpp - AOT compilation for fpga devices using aoc ------==//
//=-- accelerator.cpp - compilation for fpga emulator dev using opencl-aot --=//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------------------------------------------------===//

// REQUIRES: aoc, accelerator
// REQUIRES: opencl-aot, accelerator

// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/Inputs/aot.cpp -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
2 changes: 1 addition & 1 deletion SYCL/AOT/multiple-devices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// REQUIRES: opencl-aot, ocloc, aoc, cpu, gpu, accelerator
// REQUIRES: opencl-aot, ocloc, cpu, gpu, accelerator
// UNSUPPORTED: cuda
// CUDA is not compatible with SPIR.

Expand Down
2 changes: 1 addition & 1 deletion SYCL/Basic/context-with-multiple-devices.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: accelerator, aoc
// REQUIRES: accelerator, opencl-aot

// RUN: %clangxx -fsycl -fintelfpga -fsycl-unnamed-lambda %s -o %t2.out
// RUN: env CL_CONFIG_CPU_EMULATE_DEVICES=2 %t2.out
Expand Down
4 changes: 2 additions & 2 deletions SYCL/Basic/fpga_tests/fpga_aocx.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//==----- fpga_aocx.cpp - AOT compilation for fpga using aoc with aocx -----==//
//==---- fpga_aocx.cpp - AOT compilation for fpga emulator dev with aocx ---==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// REQUIRES: aoc, accelerator
// REQUIRES: opencl-aot, accelerator

/// E2E test for AOCX creation/use/run for FPGA
// Produce an archive with device (AOCX) image. To avoid appending objects to
Expand Down
4 changes: 2 additions & 2 deletions SYCL/Basic/fpga_tests/fpga_aocx_win.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//==--- fpga_aocx_win.cpp - AOT compilation for fpga using aoc with aocx ---==//
//==- fpga_aocx_win.cpp - AOT compilation for fpga emulator dev with aocx --==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// REQUIRES: aoc, accelerator
// REQUIRES: opencl-aot, accelerator
// REQUIRES: system-windows

/// E2E test for AOCX creation/use/run for FPGA
Expand Down
8 changes: 5 additions & 3 deletions SYCL/Basic/fpga_tests/fpga_dsp_control.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// REQUIRES: accelerator, aoc
// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//==---------- fpga_dsp_control.cpp - SYCL FPGA DSP control test -----------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// REQUIRES: accelerator, opencl-aot
// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

#include <CL/sycl.hpp>
#include <sycl/ext/intel/fpga_extensions.hpp>

Expand Down
8 changes: 5 additions & 3 deletions SYCL/Basic/fpga_tests/fpga_latency_control_lsu.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// REQUIRES: aoc, accelerator
// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//==- fpga_latency_control_lsu.cpp - SYCL FPGA latency control on LSU test -==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// REQUIRES: opencl-aot, accelerator
// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

#include <CL/sycl.hpp>
#include <sycl/ext/intel/fpga_extensions.hpp>

Expand Down
8 changes: 5 additions & 3 deletions SYCL/Basic/fpga_tests/fpga_latency_control_pipe.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// REQUIRES: aoc, accelerator
// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//== fpga_latency_control_pipe.cpp - SYCL FPGA latency control on pipe test ==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// REQUIRES: opencl-aot, accelerator
// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

#include <CL/sycl.hpp>
#include <sycl/ext/intel/fpga_extensions.hpp>

Expand Down
8 changes: 5 additions & 3 deletions SYCL/Basic/fpga_tests/fpga_lsu.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// REQUIRES: accelerator, aoc
// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//==----------------- fpga_lsu.cpp - SYCL FPGA LSU test --------------------==//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// REQUIRES: accelerator, opencl-aot
// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

#include <CL/sycl.hpp>
#include <sycl/ext/intel/fpga_extensions.hpp>

Expand Down
2 changes: 1 addition & 1 deletion SYCL/Basic/fpga_tests/global_fpga_device_selector.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: aoc, accelerator
// REQUIRES: opencl-aot, accelerator

// RUN: %clangxx -fsycl -fintelfpga %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
Expand Down
2 changes: 1 addition & 1 deletion SYCL/DeviceCodeSplit/aot-accelerator.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: aoc, accelerator
// REQUIRES: opencl-aot, accelerator

// RUN: %clangxx -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64_fpga -I %S/Inputs -o %t.out %S/split-per-source-main.cpp %S/Inputs/split-per-source-second-file.cpp \
// RUN: -fsycl-dead-args-optimization
Expand Down
4 changes: 2 additions & 2 deletions SYCL/DeviceLib/complex-fpga.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//==----- accelerator.cpp - AOT compilation for fpga devices using aoc ----==//
//==----- accelerator.cpp - AOT compilation for fpga emulator devices -----==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------------------------------------------------------------------===//
// UNSUPPORTED: windows
// REQUIRES: aoc, accelerator
// REQUIRES: opencl-aot, accelerator

// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/std_complex_math_test.cpp -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
Expand Down
2 changes: 1 addition & 1 deletion SYCL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ unavailable.
* **cl_options** - CL command line options recognized (or not) by compiler;
* **opencl_icd** - OpenCL ICD loader availability;
* **aot_tool** - Ahead-of-time compilation tools availability;
* **aoc**, **ocloc**, **opencl-aot** - Specific AOT tool availability;
* **ocloc**, **opencl-aot** - Specific AOT tool availability;
* **level_zero_dev_kit** - Level_Zero headers and libraries availability;
* **gpu-intel-dg1** - Intel GPU DG1 availability;
* **dump_ir**: - compiler can / cannot dump IR;
Expand Down
2 changes: 1 addition & 1 deletion SYCL/SpecConstants/2020/non_native/accelerator.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: aoc, accelerator
// REQUIRES: opencl-aot, accelerator

// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/Inputs/common.cpp -o %t.out \
// RUN: -fsycl-dead-args-optimization
Expand Down
2 changes: 1 addition & 1 deletion SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@

# Device AOT compilation tools aren't part of the SYCL project,
# so they need to be pre-installed on the machine
aot_tools = ["ocloc", "aoc", "opencl-aot"]
aot_tools = ["ocloc", "opencl-aot"]

for aot_tool in aot_tools:
if find_executable(aot_tool) is not None:
Expand Down