diff --git a/SYCL/OnlineCompiler/online_compiler_L0.cpp b/SYCL/OnlineCompiler/online_compiler_L0.cpp index bfe09582f4..56f1734cf0 100644 --- a/SYCL/OnlineCompiler/online_compiler_L0.cpp +++ b/SYCL/OnlineCompiler/online_compiler_L0.cpp @@ -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 diff --git a/SYCL/OnlineCompiler/online_compiler_OpenCL.cpp b/SYCL/OnlineCompiler/online_compiler_OpenCL.cpp index bacfdce991..21558dfebf 100644 --- a/SYCL/OnlineCompiler/online_compiler_OpenCL.cpp +++ b/SYCL/OnlineCompiler/online_compiler_OpenCL.cpp @@ -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 diff --git a/SYCL/README.md b/SYCL/README.md index 22ed8d159a..00024576ec 100644 --- a/SYCL/README.md +++ b/SYCL/README.md @@ -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; diff --git a/SYCL/lit.cfg.py b/SYCL/lit.cfg.py index 9998cb48fb..8acb369117 100644 --- a/SYCL/lit.cfg.py +++ b/SYCL/lit.cfg.py @@ -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"]