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

[SYCL] Add cm-compiler feature #611

Merged
merged 1 commit into from
Dec 15, 2021
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
2 changes: 1 addition & 1 deletion SYCL/OnlineCompiler/online_compiler_L0.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: level_zero, level_zero_dev_kit
// REQUIRES: level_zero, level_zero_dev_kit, cm-compiler

// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -DRUN_KERNELS %level_zero_options %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
Expand Down
2 changes: 1 addition & 1 deletion SYCL/OnlineCompiler/online_compiler_OpenCL.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: opencl, opencl_icd
// REQUIRES: opencl, opencl_icd, cm-compiler

// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -DRUN_KERNELS %opencl_lib -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
Expand Down
1 change: 1 addition & 0 deletions SYCL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ unavailable.
* **cpu**, **gpu**, **host**, **accelerator** - target device;
* **cuda**, **hip**, **opencl**, **level_zero** - target backend;
* **sycl-ls** - sycl-ls tool availability;
* **cm-compiler** - C for Metal compiler availability;
* **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;
Expand Down
3 changes: 3 additions & 0 deletions SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@
if find_executable('sycl-ls'):
config.available_features.add('sycl-ls')

if find_executable('cmc'):
config.available_features.add('cm-compiler')

# 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"]
Expand Down