Skip to content

Commit f29b498

Browse files
authored
[SYCL] Add support for assert in windows NVPTX (#6215)
Until cxx standard library for NVPTX extension is implemented _wassert is provided by libclc, that passes it to a call to __assertfail. Fixes #5922
1 parent bb80c55 commit f29b498

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libclc/ptx-nvidiacl/libspirv/assert/__assert_fail.cl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ _CLC_DECL void __assert_fail(const char *expr, const char *file,
77
unsigned int line, const char *func) {
88
__assertfail(expr, file, line, func);
99
}
10+
11+
_CLC_DECL void _wassert(const char *_Message, const char *_File,
12+
unsigned _Line) {
13+
__assertfail(_Message, _File, _Line, 0);
14+
}

0 commit comments

Comments
 (0)