Skip to content

Commit

Permalink
[Tests] Adding windows vector alg workaround for swap (uxlfoundation#…
Browse files Browse the repository at this point in the history
…1560)

Signed-off-by: Dan Hoeflinger <[email protected]>
  • Loading branch information
danhoeflinger authored May 3, 2024
1 parent 6db59a7 commit 64070c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
// <array>
// template <class T, size_t N> void swap(array<T,N>& x, array<T,N>& y);

// In Windows, as a temporary workaround, disable vector algorithm calls to avoid calls within sycl kernels
#if defined(_MSC_VER)
# define _USE_STD_VECTOR_ALGORITHMS 0
#endif

#include "support/test_config.h"

#include <oneapi/dpl/array>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
// void swap(array& a);
// namespace std { void swap(array<T, N> &x, array<T, N> &y);

// In Windows, as a temporary workaround, disable vector algorithm calls to avoid calls within sycl kernels
#if defined(_MSC_VER)
# define _USE_STD_VECTOR_ALGORITHMS 0
#endif

#include "support/test_config.h"

#include <oneapi/dpl/array>
Expand Down

0 comments on commit 64070c6

Please sign in to comment.