Skip to content

Commit d16dd21

Browse files
Rename __SYCL_USE_PREVIEW_VEC_IMPL->__SYCL_USE_LIBSYCL8_VEC_IMPL
1 parent a6bb094 commit d16dd21

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

sycl/include/sycl/detail/type_traits/vec_marray_traits.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
#include <sycl/detail/defines_elementary.hpp>
1515

16-
#ifndef __SYCL_USE_PREVIEW_VEC_IMPL
16+
#ifndef __SYCL_USE_LIBSYCL8_VEC_IMPL
1717
#if defined(__INTEL_PREVIEW_BREAKING_CHANGES)
1818
// Several specification changes need to be implemented together to keep CTS
1919
// passing. We'll switch to `1` once they all land.
2020
// `__SYCL_USE_PLAIN_ARRAY_AS_VEC_STORAGE` needs to be changed to use this
21-
// `__SYCL_USE_PREVIEW_VEC_IMPL` at that time as well.
22-
#define __SYCL_USE_PREVIEW_VEC_IMPL 0
21+
// `__SYCL_USE_LIBSYCL8_VEC_IMPL` at that time as well.
22+
#define __SYCL_USE_LIBSYCL8_VEC_IMPL 1
2323
#else
24-
#define __SYCL_USE_PREVIEW_VEC_IMPL 0
24+
#define __SYCL_USE_LIBSYCL8_VEC_IMPL 1
2525
#endif
2626
#endif
2727

sycl/include/sycl/vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ template <typename DataT, int NumElements> class vec_base {
264264
std::make_index_sequence<NumElements>()} {}
265265
};
266266

267-
#if __SYCL_USE_PREVIEW_VEC_IMPL
267+
#if !__SYCL_USE_LIBSYCL8_VEC_IMPL
268268
template <typename DataT> class vec_base<DataT, 1> {
269269
using DataType = std::conditional_t<
270270
#if __SYCL_USE_PLAIN_ARRAY_AS_VEC_STORAGE

sycl/test/basic_tests/vectors/assign.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// TODO: Remove `__SYCL_USE_PREVIEW_VEC_IMPL` once it's auto-set.
2-
// RUN: %clangxx -fsycl -fsyntax-only %s -fpreview-breaking-changes -D__SYCL_USE_PREVIEW_VEC_IMPL=1
1+
// TODO: Remove `__SYCL_USE_LIBSYCL8_VEC_IMPL` once it's auto-set.
2+
// RUN: %clangxx -fsycl -fsyntax-only %s -fpreview-breaking-changes -D__SYCL_USE_LIBSYCL8_VEC_IMPL=0
33
// RUN: %clangxx -fsycl -fsyntax-only %s
44

55
#include <sycl/sycl.hpp>

sycl/test/basic_tests/vectors/cxx_conversions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// TODO: Remove `__SYCL_USE_PREVIEW_VEC_IMPL` once it's auto-set.
2-
// RUN: %clangxx -fsycl -fsyntax-only %s -fpreview-breaking-changes -D__SYCL_USE_PREVIEW_VEC_IMPL=1
1+
// TODO: Remove `__SYCL_USE_LIBSYCL8_VEC_IMPL` once it's auto-set.
2+
// RUN: %clangxx -fsycl -fsyntax-only %s -fpreview-breaking-changes -D__SYCL_USE_LIBSYCL8_VEC_IMPL=0
33
// RUN: %clangxx -fsycl -fsyntax-only %s
44

55
#include <sycl/sycl.hpp>

0 commit comments

Comments
 (0)