File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
13
13
#include < cstdint>
14
14
15
- #ifdef __SYCL_DEVICE_ONLY__
15
+ #if defined( __SYCL_DEVICE_ONLY__) && __SYCL_USE_FALLBACK_ASSERT
16
16
// Reads Flag of AssertHappened on device
17
17
SYCL_EXTERNAL __attribute__ ((weak)) extern "C" void
18
18
__devicelib_assert_read(void *);
Original file line number Diff line number Diff line change @@ -133,4 +133,11 @@ __SYCL_WARNING("DPCPP does not support C++ version earlier than C++17. Some "
133
133
#warning : DPCPP does not support C++ version earlier than C++17. Some features might not be available.
134
134
#endif
135
135
136
+ // Helper macro to identify if fallback assert is needed
137
+ #if defined(SYCL_FALLBACK_ASSERT)
138
+ #define __SYCL_USE_FALLBACK_ASSERT SYCL_FALLBACK_ASSERT
139
+ #else
140
+ #define __SYCL_USE_FALLBACK_ASSERT 0
141
+ #endif
142
+
136
143
#endif
Original file line number Diff line number Diff line change 65
65
#define _KERNELFUNCPARAM (a ) const KernelType &a
66
66
#endif
67
67
68
- // Helper macro to identify if fallback assert is needed
69
- // FIXME remove __NVPTX__ condition once devicelib supports CUDA
70
- #if defined(SYCL_FALLBACK_ASSERT)
71
- #define __SYCL_USE_FALLBACK_ASSERT SYCL_FALLBACK_ASSERT
72
- #else
73
- #define __SYCL_USE_FALLBACK_ASSERT 0
74
- #endif
75
68
76
69
__SYCL_INLINE_NAMESPACE (cl) {
77
70
namespace sycl {
You can’t perform that action at this time.
0 commit comments