From d68ef6c297caca0c1a1ab82a75b27ea42fc67fac Mon Sep 17 00:00:00 2001 From: Steffen Larsen Date: Fri, 2 Jul 2021 14:14:24 +0100 Subject: [PATCH] [SYCL][CUDA] Add triple to build step and remove XFAIL: cuda SYCL/Regression/atomic_load.cpp and SYCL/Scheduler/MemObjRemapping.cpp should pass for the PI CUDA backend, but are missing the corresponding triple in the build step. These changes add the -fsycl-targets with the triple to these tests and renable them for CUDA. Signed-off-by: Steffen Larsen --- SYCL/Regression/atomic_load.cpp | 3 +-- SYCL/Scheduler/MemObjRemapping.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SYCL/Regression/atomic_load.cpp b/SYCL/Regression/atomic_load.cpp index 562bf4da0e..a8afef2c86 100644 --- a/SYCL/Regression/atomic_load.cpp +++ b/SYCL/Regression/atomic_load.cpp @@ -1,9 +1,8 @@ -// RUN: %clangxx -fsycl %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %HOST_RUN_PLACEHOLDER %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out // RUN: %ACC_RUN_PLACEHOLDER %t.out -// XFAIL: cuda #include using namespace cl::sycl; diff --git a/SYCL/Scheduler/MemObjRemapping.cpp b/SYCL/Scheduler/MemObjRemapping.cpp index 26ff7b8898..4a08127bdf 100644 --- a/SYCL/Scheduler/MemObjRemapping.cpp +++ b/SYCL/Scheduler/MemObjRemapping.cpp @@ -1,7 +1,6 @@ -// RUN: %clangxx -fsycl %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER // RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER -// XFAIL: cuda #include #include #include