Skip to content

Commit cf86a44

Browse files
authored
[SYCL] Fix CUDA interop self-contained-headers test (#17653)
This header needs a sepcific macro to be defined when it is included which is why the generic test gives out warnings. Add a specific test for it so we can define the macro.
1 parent e1705eb commit cf86a44

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

sycl/test/self-contained-headers/lit.local.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ config.test_format = SYCLHeadersTest()
77
# standalone. `os.path.join` is required here so the filtering works
88
# cross-platform
99
config.sycl_headers_xfail = [
10-
os.path.join(
11-
"sycl", "ext", "oneapi", "experimental", "backend", "cuda.hpp"
12-
),
1310
os.path.join(
1411
"sycl", "ext", "intel", "esimd", "detail", "types_elementary.hpp"
1512
),
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s
2+
// expected-no-diagnostics
3+
//
4+
// Check that the experimental CUDA interop header doesn't have any warnings.
5+
// This is a special test because this header requires a specific macro to be
6+
// set when it is included.
7+
8+
#define SYCL_EXT_ONEAPI_BACKEND_CUDA_EXPERIMENTAL
9+
#include <sycl/ext/oneapi/experimental/backend/cuda.hpp>

0 commit comments

Comments
 (0)