diff --git a/sycl/test/spec_const/spec_const_hw.cpp b/sycl/test/spec_const/spec_const_hw.cpp index 6e051910ce680..c50550c0827ad 100644 --- a/sycl/test/spec_const/spec_const_hw.cpp +++ b/sycl/test/spec_const/spec_const_hw.cpp @@ -1,12 +1,9 @@ -// RUN: %clangxx -fsycl %s -o %t.out +// UNSUPPORTED: cuda || level0 +// +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out -// RUN: %ACC_RUN_PLACEHOLDER %t.out -// TODO: re-enable after CI drivers are updated to newer which support spec -// constants: -// XFAIL: linux && opencl -// UNSUPPORTED: cuda || level0 // //==----------- spec_const_hw.cpp ------------------------------------------==// // diff --git a/sycl/test/spec_const/spec_const_hw_accelerator.cpp b/sycl/test/spec_const/spec_const_hw_accelerator.cpp new file mode 100644 index 0000000000000..d4eb754065c18 --- /dev/null +++ b/sycl/test/spec_const/spec_const_hw_accelerator.cpp @@ -0,0 +1,17 @@ +//==----------- spec_const_hw_accelerator.cpp ------------------------------==// +// +// 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 +// +//===----------------------------------------------------------------------===// +// The test checks that the specialization constant feature works correctly - +// tool chain processes them correctly and runtime can correctly execute the +// program. + +// TODO: re-enable after CI drivers are updated to newer which support spec +// constants: +// XFAIL: linux && opencl && accelerator +// UNSUPPORTED: cuda || level0 +#include "spec_const_hw.cpp" +// RUN: %ACC_RUN_PLACEHOLDER %t.out diff --git a/sycl/test/spec_const/spec_const_redefine.cpp b/sycl/test/spec_const/spec_const_redefine.cpp index ac65587905bf0..36a82f9c9825e 100644 --- a/sycl/test/spec_const/spec_const_redefine.cpp +++ b/sycl/test/spec_const/spec_const_redefine.cpp @@ -1,12 +1,9 @@ -// RUN: %clangxx -fsycl %s -o %t.out +// UNSUPPORTED: cuda || level0 +// +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // 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 %GPU_CHECK_PLACEHOLDER -// RUN: env SYCL_PI_TRACE=2 %ACC_RUN_PLACEHOLDER %t.out 2>&1 %ACC_CHECK_PLACEHOLDER -// TODO: re-enable after CI drivers are updated to newer which support spec -// constants: -// XFAIL: linux && opencl -// UNSUPPORTED: cuda || level0 // //==----------- spec_const_redefine.cpp ------------------------------------==// // diff --git a/sycl/test/spec_const/spec_const_redefine_accelerator.cpp b/sycl/test/spec_const/spec_const_redefine_accelerator.cpp new file mode 100644 index 0000000000000..00ef10f63fdfa --- /dev/null +++ b/sycl/test/spec_const/spec_const_redefine_accelerator.cpp @@ -0,0 +1,19 @@ +//==----------- spec_const_redefine.cpp ------------------------------------==// +// +// 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 +// +//===----------------------------------------------------------------------===// +// The test checks that: +// - a specialization constant can be redifined and correct new value is used +// after redefinition. +// - the program is JITted only once per a unique set of specialization +// constants values. + +// TODO: re-enable after CI drivers are updated to newer which support spec +// constants: +// XFAIL: linux && opencl && accelerator +// UNSUPPORTED: cuda || level0 +#include "spec_const_redefine_accelerator.cpp" +// RUN: env SYCL_PI_TRACE=2 %ACC_RUN_PLACEHOLDER %t.out 2>&1 %ACC_CHECK_PLACEHOLDER