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

Commit 2334571

Browse files
authored
[SYCL] Add cm-compiler feature (#611)
1 parent a4baf32 commit 2334571

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

SYCL/OnlineCompiler/online_compiler_L0.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: level_zero, level_zero_dev_kit
1+
// REQUIRES: level_zero, level_zero_dev_kit, cm-compiler
22

33
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -DRUN_KERNELS %level_zero_options %s -o %t.out
44
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/OnlineCompiler/online_compiler_OpenCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: opencl, opencl_icd
1+
// REQUIRES: opencl, opencl_icd, cm-compiler
22

33
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -DRUN_KERNELS %opencl_lib -o %t.out
44
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ unavailable.
139139
* **cpu**, **gpu**, **host**, **accelerator** - target device;
140140
* **cuda**, **hip**, **opencl**, **level_zero** - target backend;
141141
* **sycl-ls** - sycl-ls tool availability;
142+
* **cm-compiler** - C for Metal compiler availability;
142143
* **cl_options** - CL command line options recognized (or not) by compiler;
143144
* **opencl_icd** - OpenCL ICD loader availability;
144145
* **aot_tool** - Ahead-of-time compilation tools availability;

SYCL/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@
326326
if find_executable('sycl-ls'):
327327
config.available_features.add('sycl-ls')
328328

329+
if find_executable('cmc'):
330+
config.available_features.add('cm-compiler')
331+
329332
# Device AOT compilation tools aren't part of the SYCL project,
330333
# so they need to be pre-installed on the machine
331334
aot_tools = ["ocloc", "aoc", "opencl-aot"]

0 commit comments

Comments
 (0)