From 199a06b5bbe489a904ff989287f8970b1cf9f332 Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Thu, 1 Dec 2022 01:37:34 -0800 Subject: [PATCH] [SYCL] Add target to is_compatible test This commit should fix the is_compatible test for non-SPIRV targets. Signed-off-by: Larsen, Steffen --- SYCL/OptionalKernelFeatures/is_compatible.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SYCL/OptionalKernelFeatures/is_compatible.cpp b/SYCL/OptionalKernelFeatures/is_compatible.cpp index d1f17326b9..62e8aa6cb6 100644 --- a/SYCL/OptionalKernelFeatures/is_compatible.cpp +++ b/SYCL/OptionalKernelFeatures/is_compatible.cpp @@ -1,5 +1,5 @@ // requires: cpu, gpu, accelerator -// RUN: %clangxx -fsycl -O0 %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -O0 %s -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out // RUN: %ACC_RUN_PLACEHOLDER %t.out