Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/experimental/__p0009_bits/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ static_assert(MDSPAN_IMPL_CPLUSPLUS >= MDSPAN_CXX_STD_14, "mdspan requires C++14
# endif
#endif

#ifndef MDSPAN_IMPL_HAS_OPENACC
# if defined(_OPENACC)
# define MDSPAN_IMPL_HAS_OPENACC _OPENACC
# endif
#endif

#ifndef MDSPAN_IMPL_HAS_CPP_ATTRIBUTE
# ifndef __has_cpp_attribute
# define MDSPAN_IMPL_HAS_CPP_ATTRIBUTE(x) 0
Expand Down
7 changes: 6 additions & 1 deletion include/experimental/__p0009_bits/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#if defined(MDSPAN_IMPL_HAS_SYCL)
#include <sycl/sycl.hpp> // sycl::ext::oneapi::experimental::printf
#endif
#if defined(MDSPAN_IMPL_HAS_CUDA) || defined(MDSPAN_IMPL_HAS_HIP) || defined(MDSPAN_IMPL_HAS_SYCL)
#if defined(MDSPAN_IMPL_HAS_CUDA) || defined(MDSPAN_IMPL_HAS_HIP) || defined(MDSPAN_IMPL_HAS_SYCL) || defined(MDSPAN_IMPL_HAS_OPENACC)
#include "assert.h"
#endif

Expand Down Expand Up @@ -130,6 +130,11 @@ MDSPAN_FUNCTION inline void default_precondition_violation_handler(const char* c
#endif
assert(0);
}
#elif defined(MDSPAN_IMPL_HAS_OPENACC)
MDSPAN_FUNCTION inline void default_precondition_violation_handler(const char* /* cond */, const char* /* file */, unsigned /* line */)
{
assert(false);
}
Comment thread
seyonglee marked this conversation as resolved.
#else
MDSPAN_FUNCTION inline void default_precondition_violation_handler(const char* cond, const char* file, unsigned line)
{
Expand Down
Loading