Skip to content

Commit 58e43ed

Browse files
committed
Fix macro_cuda.cpp test
1 parent dc8fee6 commit 58e43ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/test/extensions/macro_cuda.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
// RUN: %clangxx -fsycl -fsyntax-only %s
33
// REQUIRES: cuda_be
44

5+
#include <sycl/sycl.hpp>
6+
57
#if SYCL_EXT_ONEAPI_BACKEND_CUDA == 1
68
constexpr bool macro_defined = true;
79
#else
810
constexpr bool macro_defined = false;
911
#endif
1012

11-
#include <sycl/sycl.hpp>
1213
int main() {
1314
static_assert(macro_defined);
1415

0 commit comments

Comments
 (0)