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

Commit 2a3f12a

Browse files
[SYCL][CUDA] Add triple to build step and remove XFAIL: cuda (#339)
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 <[email protected]>
1 parent f67c676 commit 2a3f12a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

SYCL/Regression/atomic_load.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// XFAIL: cuda
76
#include <CL/sycl.hpp>
87
using namespace cl::sycl;
98

SYCL/Scheduler/MemObjRemapping.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER
33
// RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER
4-
// XFAIL: cuda
54
#include <CL/sycl.hpp>
65
#include <cassert>
76
#include <cstddef>

0 commit comments

Comments
 (0)